aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-04-26 15:54:54 -0700
committerBen Pfaff <blp@nicira.com>2012-05-01 15:21:39 -0700
commitb9718b7ba7828c702a67d5411f935b263bb9c795 (patch)
tree97da60e2c36732514973b599ab3b5800e59db8e1 /lib
parent4530afbaf4e5fbf8f9b3e2832fb9c89f618225e5 (diff)
ofp-print: Add some more white space to flow dumps.
Before idle_age and hard_age were added, in the absence of timeouts there was a space between the statistics for a flow and the start of the flow match. This restores that space. Requested-by: Paul Ingram <paul@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ofp-print.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ofp-print.c b/lib/ofp-print.c
index 23dadd94..d0fd2290 100644
--- a/lib/ofp-print.c
+++ b/lib/ofp-print.c
@@ -1223,16 +1223,16 @@ ofp_print_flow_stats_reply(struct ds *string, const struct ofp_header *oh)
ds_put_format(string, "n_packets=%"PRIu64", ", fs.packet_count);
ds_put_format(string, "n_bytes=%"PRIu64", ", fs.byte_count);
if (fs.idle_timeout != OFP_FLOW_PERMANENT) {
- ds_put_format(string, "idle_timeout=%"PRIu16",", fs.idle_timeout);
+ ds_put_format(string, "idle_timeout=%"PRIu16", ", fs.idle_timeout);
}
if (fs.hard_timeout != OFP_FLOW_PERMANENT) {
- ds_put_format(string, "hard_timeout=%"PRIu16",", fs.hard_timeout);
+ ds_put_format(string, "hard_timeout=%"PRIu16", ", fs.hard_timeout);
}
if (fs.idle_age >= 0) {
- ds_put_format(string, "idle_age=%d,", fs.idle_age);
+ ds_put_format(string, "idle_age=%d, ", fs.idle_age);
}
if (fs.hard_age >= 0 && fs.hard_age != fs.duration_sec) {
- ds_put_format(string, "hard_age=%d,", fs.hard_age);
+ ds_put_format(string, "hard_age=%d, ", fs.hard_age);
}
cls_rule_format(&fs.rule, string);