Repository : ssh://git@diktynna/batctl
On branch : master
commit 1028b5e2b52c1861eff619c0dcb989606b3ba8e9 Author: Sven Eckelmann sven@narfation.org Date: Mon May 17 10:15:20 2021 +0200
batctl: Drop additional '{' in JSON for loglevel
Fixes: 57cc3c472a7d ("batctl: Introduce handler for JSON_* command types") Reported-by: Alexander Sarmanow asarmanow@gmail.com Signed-off-by: Sven Eckelmann sven@narfation.org
1028b5e2b52c1861eff619c0dcb989606b3ba8e9 genl_json.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/genl_json.c b/genl_json.c index 460838b..2be533d 100644 --- a/genl_json.c +++ b/genl_json.c @@ -204,8 +204,6 @@ static void nljson_print_loglevel(struct nlattr *attrs[], int idx) { uint32_t val = nla_get_u32(attrs[idx]);
- putchar('{'); - putchar('{'); printf(""batman": %s,", val & BIT(0) ? "true" : "false");