diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-11-17 12:05:12 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-11-17 16:01:30 +0100 |
| commit | ad9df66ce244c9e062319970e980cc70f9543f29 (patch) | |
| tree | d6f951a2adba9376ee0b98a0efa24cab709727db /lib/ferr.c | |
| parent | 2c4dfddb01cd7dfb28f410dca866738486981ca6 (diff) | |
lib: use vty_json()
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/ferr.c')
| -rw-r--r-- | lib/ferr.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ferr.c b/lib/ferr.c index 513ef5ebec..e5b6d7552d 100644 --- a/lib/ferr.c +++ b/lib/ferr.c @@ -157,13 +157,7 @@ void log_ref_display(struct vty *vty, uint32_t code, bool json) } } - if (json) { - const char *str = json_object_to_json_string_ext( - top, JSON_C_TO_STRING_PRETTY); - vty_out(vty, "%s\n", str); - json_object_free(top); - } - + vty_json(vty, top); list_delete(&errlist); } |
