From 5aafcfe30afc383e53d8345cc781c644964d0e91 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 19 Jan 2010 10:12:05 -0800 Subject: [PATCH] sflow: Fix printf format specifier in log message. "65536 / sizeof *actions" has type size_t, so use %zu. Reported-by: Neil McKee --- ofproto/ofproto-sflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2