From 9370bb92b2d16684ee45cf24e879c93c509162da Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Thu, 19 Dec 2024 01:47:39 +0000 Subject: [PATCH] add wifi6 8852be driver --- kernel/tools/bpf/bpftool/json_writer.c | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/kernel/tools/bpf/bpftool/json_writer.c b/kernel/tools/bpf/bpftool/json_writer.c index c6eef76..bca5dd0 100644 --- a/kernel/tools/bpf/bpftool/json_writer.c +++ b/kernel/tools/bpf/bpftool/json_writer.c @@ -1,13 +1,9 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * Simple streaming JSON writer * * This takes care of the annoying bits of JSON syntax like the commas * after elements - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. * * Authors: Stephen Hemminger <stephen@networkplumber.org> */ @@ -84,9 +80,6 @@ case '"': fputs("\\\"", self->out); break; - case '\'': - fputs("\\\'", self->out); - break; default: putc(*str, self->out); } @@ -123,6 +116,12 @@ self->pretty = on; } +void jsonw_reset(json_writer_t *self) +{ + assert(self->depth == 0); + self->sep = '\0'; +} + /* Basic blocks */ static void jsonw_begin(json_writer_t *self, int c) { -- Gitblit v1.6.2