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 <[email protected]>
Fixes: b47e7e2bac7f ("ofp-table: Always format the table number in
table features.")
Signed-off-by: Ilya Maximets <[email protected]>
---
lib/ofp-table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ofp-table.c b/lib/ofp-table.c
index 88fc32240..8a070af3f 100644
--- a/lib/ofp-table.c
+++ b/lib/ofp-table.c
@@ -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);
}
--
2.17.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev