projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07ee64
)
Correct the warning for format specifier.
author
Mehak Mahajan
<mmahajan@nicira.com>
Mon, 5 Nov 2012 19:14:36 +0000
(11:14 -0800)
committer
Mehak 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
patch
|
blob
|
history
diff --git
a/lib/ofp-util.c
b/lib/ofp-util.c
index 146e538a7f464ef6e92969f6018d93e528b09e3a..ae54477ee567f50317db0ea6ac1bb3c0d1ac6664 100644
(file)
--- 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%02
z
x", version);
+ ds_put_format(msg, "0x%02x", version);
}
void