[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <0106018e0957ab86-fb96e2a2-08a2-4e7d-b23c-e2ccff627d0c-000000@ap-northeast-1.amazonses.com>
Date: Mon, 4 Mar 2024 12:02:04 +0000
From: Takanori Hirano <me@...tknr.net>
To: netdev@...r.kernel.org
Cc: stephen@...workplumber.org, Takanori Hirano <me@...tknr.net>
Subject: [PATCH] tc: Fix json output for f_u32
Signed-off-by: Takanori Hirano <me@...tknr.net>
---
tc/f_u32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tc/f_u32.c b/tc/f_u32.c
index 8a241310..59aa4e3a 100644
--- a/tc/f_u32.c
+++ b/tc/f_u32.c
@@ -1342,7 +1342,7 @@ static int u32_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt,
if (sel->flags & (TC_U32_VAROFFSET | TC_U32_OFFSET)) {
print_nl();
- print_string(PRINT_ANY, NULL, "%s", " offset ");
+ print_string(PRINT_FP, NULL, " offset ", NULL);
if (sel->flags & TC_U32_VAROFFSET) {
print_hex(PRINT_ANY, "offset_mask", "%04x", ntohs(sel->offmask));
print_int(PRINT_ANY, "offset_shift", ">>%d ", sel->offshift);
--
2.34.1
Powered by blists - more mailing lists