From 8989046dddb1e3d47a79ee720307cadd5dbb5a62 Mon Sep 17 00:00:00 2001 From: Mehak Mahajan Date: Mon, 5 Nov 2012 11:14:36 -0800 Subject: [PATCH] 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 --- lib/ofp-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2