diff options
author | Justin Pettit <jpettit@nicira.com> | 2011-09-29 18:36:09 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2011-09-29 18:52:29 -0700 |
commit | 7593daa2473c464cd179420b9c7f68989044fdee (patch) | |
tree | 6c72a88cd17dc06dac7cf70baf8d559f70708a52 /lib/cfm.c | |
parent | a6e198ea4895ce0768afe3bc75239769132c56d2 (diff) |
cfm: Cleanup output of ovs-appctl "cfm/show" command.
When no remote MPIDs were found, the output would print an extra newline.
If multiple remote MPIDs were found, the lines would run together. This
commit cleans things up a bit by just printing each item on its own line
without any blank lines.
Diffstat (limited to 'lib/cfm.c')
-rw-r--r-- | lib/cfm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -533,12 +533,11 @@ cfm_print_details(struct ds *ds, const struct cfm *cfm) ds_put_format(ds, "\tnext fault check: %lldms\n", timer_msecs_until_expired(&cfm->fault_timer)); - ds_put_cstr(ds, "\n"); HMAP_FOR_EACH (rmp, node, &cfm->remote_mps) { ds_put_format(ds, "Remote MPID %"PRIu64":%s\n", rmp->mpid, rmp->rdi ? " rdi" : ""); - ds_put_format(ds, "\trecv since check: %s", + ds_put_format(ds, "\trecv since check: %s\n", rmp->recv ? "true" : "false"); } } |