[ovs-dev] [PATCH] Correct the warning for format specifier.
Mehak Mahajan
mmahajan at nicira.com
Mon Nov 5 19:18:53 UTC 2012
ofputil_format_version uses type 'size_t' to print version whereas
expected type is 'unsigned int'.
Signed-off-by: Mehak Mahajan <mmahajan at nicira.com>
---
lib/ofp-util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 146e538..ae54477 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -1043,7 +1043,7 @@ ofputil_usable_protocols(const struct match *match)
void
ofputil_format_version(struct ds *msg, enum ofp_version version)
{
- ds_put_format(msg, "0x%02zx", version);
+ ds_put_format(msg, "0x%02x", version);
}
void
--
1.7.2.5
More information about the dev
mailing list