ofproto-dpif: Fix incorrect printf format specifiers.
authorBen Pfaff <blp@nicira.com>
Mon, 10 Jun 2013 18:26:03 +0000 (11:26 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 10 Jun 2013 18:26:03 +0000 (11:26 -0700)
    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 <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif.c

index d5cfc16..eb2c7e0 100644 (file)
@@ -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) {