aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-09-22 14:35:05 -0700
committerBen Pfaff <blp@nicira.com>2011-09-22 14:35:05 -0700
commit05b8f1c2b47a64d1eee5d3fa4ab325b0784c5003 (patch)
tree4ad885a6dfd71681cdd56d19346b7acb0853d514 /lib
parentbb7d0e2287b7f1a593903d06c46a4d08b83b7b80 (diff)
ofp-print: Avoid double space before "actions" for catch-all flows.
Bug #7434. Reported-by: Michael Mao <mmao@nicira.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ofp-print.c4
1 files changed, 3 insertions, 1 deletions
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);
}
}