]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ofp-table: Fix table print format string.
authorIlya Maximets <i.maximets@samsung.com>
Tue, 30 Oct 2018 13:51:22 +0000 (16:51 +0300)
committerBen Pfaff <blp@ovn.org>
Tue, 30 Oct 2018 16:53:38 +0000 (09:53 -0700)
This fixes travis build on OSX:

https://travis-ci.org/openvswitch/ovs/jobs/446920531

lib/ofp-table.c:1454:42: error: \
format specifies type 'unsigned char' but the argument has type 'int'
    ds_put_format(s, "\n  table %"PRIu8, table);
                                ~~       ^~~~~

CC: Ben Pfaff <blp@ovn.org>
Fixes: b47e7e2bac7f ("ofp-table: Always format the table number in table features.")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ofp-table.c

index 88fc322408eec09f0f46e2d8a4fb2f8ef1f1f854..8a070af3f8eb84e9f72cc1d7b38bee6f409ba0a3 100644 (file)
@@ -1451,7 +1451,7 @@ ofputil_table_features_format(
     ofputil_table_features_format_finish(s, *first_ditto, *last_ditto);
     *first_ditto = -1;
 
-    ds_put_format(s, "\n  table %"PRIu8, table);
+    ds_put_format(s, "\n  table %d", table);
     if (features->name[0]) {
         ds_put_format(s, " (\"%s\")", features->name);
     }