Skip to content

Commit

Permalink
ofproto-dpif-upcall: Remove tabs from output.
Browse files Browse the repository at this point in the history
OVS uses spaces for indentation in source code and it makes sense for it to
also use spaces for indentation in output.  Spaces also consume less
horizontal space in output, which often makes it easier to read.  This
commit transitions one part of output from tabs to spaces and updates
appropriate parts of the tests to match.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Justin Pettit <[email protected]>
  • Loading branch information
blp committed Jun 11, 2018
1 parent 393e9f7 commit 44b8de5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ofproto/ofproto-dpif-upcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -2725,11 +2725,11 @@ upcall_unixctl_show(struct unixctl_conn *conn, int argc OVS_UNUSED,
ufid_enabled = udpif_use_ufid(udpif);

ds_put_format(&ds, "%s:\n", dpif_name(udpif->dpif));
ds_put_format(&ds, "\tflows : (current %lu)"
ds_put_format(&ds, " flows : (current %lu)"
" (avg %u) (max %u) (limit %u)\n", udpif_get_n_flows(udpif),
udpif->avg_n_flows, udpif->max_n_flows, flow_limit);
ds_put_format(&ds, "\tdump duration : %lldms\n", udpif->dump_duration);
ds_put_format(&ds, "\tufid enabled : ");
ds_put_format(&ds, " dump duration : %lldms\n", udpif->dump_duration);
ds_put_format(&ds, " ufid enabled : ");
if (ufid_enabled) {
ds_put_format(&ds, "true\n");
} else {
Expand All @@ -2744,7 +2744,7 @@ upcall_unixctl_show(struct unixctl_conn *conn, int argc OVS_UNUSED,
for (j = i; j < N_UMAPS; j += n_revalidators) {
elements += cmap_count(&udpif->ukeys[j].cmap);
}
ds_put_format(&ds, "\t%u: (keys %d)\n", revalidator->id, elements);
ds_put_format(&ds, " %u: (keys %d)\n", revalidator->id, elements);
}
}

Expand Down

0 comments on commit 44b8de5

Please sign in to comment.