mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 13:01:59 +00:00
tools: Handle new lines for json_object_to_json_string_ext()
Just to handle %s and %s\n. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
a9155261f7
commit
1c862c2d9e
@ -1,9 +1,10 @@
|
||||
@@
|
||||
identifier vty;
|
||||
identifier json;
|
||||
constant fmt;
|
||||
@@
|
||||
|
||||
-vty_out(vty, "%s\n", json_object_to_json_string_ext(json, ...));
|
||||
-vty_out(vty, fmt, json_object_to_json_string_ext(json, ...));
|
||||
...
|
||||
-json_object_free(json);
|
||||
+vty_json(vty, json);
|
||||
|
Loading…
Reference in New Issue
Block a user