From 09672174bf12baf8096fb628c16d2bae656eed95 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 10 Jun 2013 11:26:03 -0700 Subject: [PATCH] ofproto-dpif: Fix incorrect printf format specifiers. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit cc1: warnings being treated as errors ../ofproto/ofproto-dpif.c: In function ‘dpif_show_backer’: ../ofproto/ofproto-dpif.c:8305: error: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘size_t’ ../ofproto/ofproto-dpif.c:8305: error: format ‘%llu’ expects type ‘long long unsigned int’, but argument 5 has type ‘size_t’ Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- ofproto/ofproto-dpif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index d5cfc16a9..eb2c7e0f7 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -8287,11 +8287,12 @@ show_dp_rates(struct ds *ds, const char *heading, static void dpif_show_backer(const struct dpif_backer *backer, struct ds *ds) { - size_t n_hit, n_missed, i; const struct shash_node **ofprotos; struct ofproto_dpif *ofproto; struct shash ofproto_shash; + uint64_t n_hit, n_missed; long long int minutes; + size_t i; n_hit = n_missed = 0; HMAP_FOR_EACH (ofproto, all_ofproto_dpifs_node, &all_ofproto_dpifs) { -- 2.47.0