From ef136039478ae7e9888ff20789f8759a39e5d545 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 17 Jul 2020 18:07:49 +0200 Subject: [PATCH] format_json: Format with contrib/format.sh --- src/utils/format_json/format_json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/format_json/format_json.c b/src/utils/format_json/format_json.c index af98c8043..e759d24b3 100644 --- a/src/utils/format_json/format_json.c +++ b/src/utils/format_json/format_json.c @@ -296,8 +296,8 @@ static int format_alert(yajl_gen g, notification_t const *n) /* {{{ */ strbuf_t buf = STRBUF_CREATE; strbuf_print(&buf, "collectd_"); if (strcmp(n->plugin, n->type) != 0) { - strbuf_print(&buf, n->plugin); - strbuf_print(&buf, "_"); + strbuf_print(&buf, n->plugin); + strbuf_print(&buf, "_"); } strbuf_print(&buf, n->type); CHECK(json_add_string(g, buf.ptr)); -- 2.47.2