[ovs-dev] [PATCH] ofp-table: Fix table print format string.
Ilya Maximets
i.maximets at samsung.com
Tue Oct 30 13:51:22 UTC 2018
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 at ovn.org>
Fixes: b47e7e2bac7f ("ofp-table: Always format the table number in
table features.")
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
---
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
More information about the dev
mailing list