ofproto-dpif: Fix format specifier.
authorBen Pfaff <blp@nicira.com>
Tue, 11 Jun 2013 20:42:12 +0000 (13:42 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Jun 2013 19:34:07 +0000 (12:34 -0700)
list_size() returns a size_t, not a uint64_t.

Found by GCC.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif.c

index 63f2252..ebb3829 100644 (file)
@@ -8685,8 +8685,7 @@ ofproto_unixctl_dpif_dump_megaflows(struct unixctl_conn *conn,
     CLS_CURSOR_FOR_EACH (facet, cr, &cursor) {
         cls_rule_format(&facet->cr, &ds);
         ds_put_cstr(&ds, ", ");
-        ds_put_format(&ds, "n_subfacets:%"PRIu64", ",
-                      list_size(&facet->subfacets));
+        ds_put_format(&ds, "n_subfacets:%zu, ", list_size(&facet->subfacets));
         ds_put_format(&ds, "used:%.3fs, ", (now - facet->used) / 1000.0);
         ds_put_cstr(&ds, "Datapath actions: ");
         if (facet->xout.slow) {