From b47e7e2bac7f21f8c81aaeb1068598a6064c348b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 30 Aug 2018 11:03:12 -0700 Subject: ofp-table: Always format the table number in table features. Table features should indicate the table number as well as the table name. Before this, the first line for each table looked like this: table myname ("myname"): but it's more useful if it's: table 123 ("myname"): Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- lib/ofp-table.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/ofp-table.c') diff --git a/lib/ofp-table.c b/lib/ofp-table.c index e5c824771..88fc32240 100644 --- a/lib/ofp-table.c +++ b/lib/ofp-table.c @@ -1432,7 +1432,6 @@ ofputil_table_features_format( const struct ofputil_table_features *prev_features, const struct ofputil_table_stats *stats, const struct ofputil_table_stats *prev_stats, - const struct ofputil_table_map *table_map, int *first_ditto, int *last_ditto) { int table = features->table_id; @@ -1452,8 +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 "); - ofputil_format_table(table, table_map, s); + ds_put_format(s, "\n table %"PRIu8, table); if (features->name[0]) { ds_put_format(s, " (\"%s\")", features->name); } -- cgit v1.2.1