]> git.proxmox.com Git - mirror_ovs.git/commitdiff
dpif-netdev: Fix -Wformat warning on 32-bit build.
authorDaniele Di Proietto <diproiettod@vmware.com>
Fri, 12 Aug 2016 22:38:50 +0000 (15:38 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Sat, 13 Aug 2016 00:56:43 +0000 (17:56 -0700)
Use the appropriate format specifier for size_t, otherwise the 32-bit
build fails.

Reported-at: https://travis-ci.org/openvswitch/ovs/jobs/151938383
Fixes: 3453b4d62a98("dpif-netdev: dpcls per in_port with sorted
subtables")
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Joe Stringer <joe@ovn.org>
lib/dpif-netdev.c

index c1564bd2d6bbbf03b111353270966a1a1a98283b..96504f5318169378a2609a8e7a01ed5e73e0cd0c 100644 (file)
@@ -4911,7 +4911,7 @@ dpcls_create_subtable(struct dpcls *cls, const struct netdev_flow_key *mask)
     cmap_insert(&cls->subtables_map, &subtable->cmap_node, mask->hash);
     /* Add the new subtable at the end of the pvector (with no hits yet) */
     pvector_insert(&cls->subtables, subtable, 0);
-    VLOG_DBG("Creating %lu. subtable %p for in_port %d",
+    VLOG_DBG("Creating %"PRIuSIZE". subtable %p for in_port %d",
              cmap_count(&cls->subtables_map), subtable, cls->in_port);
     pvector_publish(&cls->subtables);