Correct the warning for format specifier.
authorMehak Mahajan <mmahajan@nicira.com>
Mon, 5 Nov 2012 19:14:36 +0000 (11:14 -0800)
committerMehak Mahajan <mmahajan@nicira.com>
Mon, 5 Nov 2012 21:23:16 +0000 (13:23 -0800)
ofputil_format_version uses type 'size_t' to print version whereas
expected type is 'unsigned int'.

Signed-off-by: Mehak Mahajan <mmahajan@nicira.com>
lib/ofp-util.c

index 146e538a7f464ef6e92969f6018d93e528b09e3a..ae54477ee567f50317db0ea6ac1bb3c0d1ac6664 100644 (file)
@@ -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