From: Mehak Mahajan Date: Mon, 5 Nov 2012 19:14:36 +0000 (-0800) Subject: Correct the warning for format specifier. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff_plain;h=8989046dddb1e3d47a79ee720307cadd5dbb5a62 Correct the warning for format specifier. ofputil_format_version uses type 'size_t' to print version whereas expected type is 'unsigned int'. Signed-off-by: Mehak Mahajan --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 146e538a..ae54477e 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