From: Ben Pfaff Date: Tue, 19 Jan 2010 18:12:05 +0000 (-0800) Subject: sflow: Fix printf format specifier in log message. X-Git-Tag: v0.99.1~1^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5aafcfe30afc383e53d8345cc781c644964d0e91;p=sliver-openvswitch.git sflow: Fix printf format specifier in log message. "65536 / sizeof *actions" has type size_t, so use %zu. Reported-by: Neil McKee --- diff --git a/ofproto/ofproto-sflow.c b/ofproto/ofproto-sflow.c index 1ad252302..aa91460f6 100644 --- 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; }