summaryrefslogtreecommitdiffstats
path: root/tools/coccinelle
diff options
context:
space:
mode:
Diffstat (limited to 'tools/coccinelle')
-rw-r--r--tools/coccinelle/vty_json.cocci3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/coccinelle/vty_json.cocci b/tools/coccinelle/vty_json.cocci
index 481dac540..2f2f321ec 100644
--- a/tools/coccinelle/vty_json.cocci
+++ b/tools/coccinelle/vty_json.cocci
@@ -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);