From: Ben Pfaff Date: Tue, 19 Jan 2010 18:12:05 +0000 (-0800) Subject: sflow: Fix printf format specifier in log message. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aafcfe30afc383e53d8345cc781c644964d0e91;p=openvswitch 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 1ad25230..aa91460f 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; }