From 05b8f1c2b47a64d1eee5d3fa4ab325b0784c5003 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 22 Sep 2011 14:35:05 -0700 Subject: ofp-print: Avoid double space before "actions" for catch-all flows. Bug #7434. Reported-by: Michael Mao --- lib/ofp-print.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 23110920..a9f90df0 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1053,7 +1053,9 @@ ofp_print_flow_stats_reply(struct ds *string, const struct ofp_header *oh) } cls_rule_format(&fs.rule, string); - ds_put_char(string, ' '); + if (string->string[string->length - 1] != ' ') { + ds_put_char(string, ' '); + } ofp_print_actions(string, fs.actions, fs.n_actions); } } -- cgit v1.2.3