Correct the warning for format specifier.
[openvswitch] / 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