sflow: Fix printf format specifier in log message.
authorBen Pfaff <blp@nicira.com>
Tue, 19 Jan 2010 18:12:05 +0000 (10:12 -0800)
committerBen 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

index 1ad252302ef9745a4ef372194472cdacc55c7f3e..aa91460f66d7f31912675a19ec0b6960a55af9e8 100644 (file)
@@ -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;
     }