From: Ben Pfaff Date: Mon, 10 Jun 2013 18:26:03 +0000 (-0700) Subject: ofproto-dpif: Fix incorrect printf format specifiers. X-Git-Tag: sliver-openvswitch-1.10.90-3~6^2~142 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=09672174bf12baf8096fb628c16d2bae656eed95;p=sliver-openvswitch.git ofproto-dpif: Fix incorrect printf format specifiers. 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 --- 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) {