The function flow_stats_ds() did its own formatting when there were no
actions, but this didn't include "action=". There's actually no reason
to special-case this, since ofpact_format() properly handles actions
with a zero length and prints it properly.
Signed-off-by: Justin Pettit <jpettit@nicira.com>
ds_put_format(results, "n_bytes=%"PRIu64", ", byte_count);
cls_rule_format(&rule->cr, results);
ds_put_char(results, ',');
- if (rule->ofpacts_len > 0) {
- ofpacts_format(rule->ofpacts, rule->ofpacts_len, results);
- } else {
- ds_put_cstr(results, "drop");
- }
+ ofpacts_format(rule->ofpacts, rule->ofpacts_len, results);
ds_put_cstr(results, "\n");
}