From: Daniel Walton Date: Wed, 28 Sep 2016 01:35:22 +0000 (-0700) Subject: pimd: 'show ip pim state json' use JSON_C_TO_STRING_PRETTY X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~189 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=72b39b9ec5b458c22009cc64cb8ba918c36f8659;p=mirror%2Ffrr.git pimd: 'show ip pim state json' use JSON_C_TO_STRING_PRETTY Signed-off-by: Daniel Walton Ticket: CM-11812 --- diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 77e3641cf6..cb7047a9fb 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -1412,7 +1412,7 @@ pim_show_state(struct vty *vty, const char *src_or_group, const char *group, u_c if (uj) { - vty_out (vty, "%s%s", json_object_to_json_string(json), VTY_NEWLINE); + vty_out (vty, "%s%s", json_object_to_json_string_ext(json, JSON_C_TO_STRING_PRETTY), VTY_NEWLINE); json_object_free(json); } else { vty_out(vty, "%s", VTY_NEWLINE);