projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8334b47
)
sflow: Fix printf format specifier in log message.
author
Ben Pfaff
<blp@nicira.com>
Tue, 19 Jan 2010 18:12:05 +0000
(10:12 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 19 Jan 2010 18:12:05 +0000
(10:12 -0800)
"65536 / sizeof *actions" has type size_t, so use %zu.
Reported-by: Neil McKee <neil.mckee@inmon.com>
ofproto/ofproto-sflow.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto-sflow.c
b/ofproto/ofproto-sflow.c
index 1ad252302ef9745a4ef372194472cdacc55c7f3e..aa91460f66d7f31912675a19ec0b6960a55af9e8 100644
(file)
--- a/
ofproto/ofproto-sflow.c
+++ b/
ofproto/ofproto-sflow.c
@@
-481,7
+481,7
@@
ofproto_sflow_received(struct ofproto_sflow *os, struct odp_msg *msg)
/* Get actions. */
n_actions = hdr->n_actions;
if (n_actions > 65536 / sizeof *actions) {
- VLOG_WARN_RL(&rl, "too many actions in sFlow packet (%
"PRIu32"
> %zu)",
+ VLOG_WARN_RL(&rl, "too many actions in sFlow packet (%
zu
> %zu)",
65536 / sizeof *actions, n_actions);
return;
}