ofproto: flow_stats_ds() print flows properly.
authorEthan Jackson <ethan@nicira.com>
Mon, 14 Feb 2011 20:10:52 +0000 (12:10 -0800)
committerEthan Jackson <ethan@nicira.com>
Fri, 18 Feb 2011 19:24:22 +0000 (11:24 -0800)
ofproto/ofproto.c

index e4c3528..31c8b62 100644 (file)
@@ -3668,6 +3668,7 @@ flow_stats_ds(struct ofproto *ofproto, struct rule *rule, struct ds *results)
     ds_put_format(results, "n_packets=%"PRIu64", ", packet_count);
     ds_put_format(results, "n_bytes=%"PRIu64", ", byte_count);
     cls_rule_format(&rule->cr, results);
+    ds_put_char(results, ',');
     if (act_len > 0) {
         ofp_print_actions(results, &rule->actions->header, act_len);
     } else {