aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakanori Hirano <me@hrntknr.net>2024-03-04 12:02:04 +0000
committerStephen Hemminger <stephen@networkplumber.org>2024-03-04 08:20:46 -0800
commitb8daf861a45d066712a3146640ae925ab7403e2c (patch)
tree521b7edf2af67ffb2aef048a1c8c0086125814ac
parent67685422bfee1b886b907e03129b12c8a1ebb6a4 (diff)
downloadiproute2-next-b8daf861a45d066712a3146640ae925ab7403e2c.tar.gz
tc: Fix json output for f_u32
Signed-off-by: Takanori Hirano <me@hrntknr.net> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--tc/f_u32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/f_u32.c b/tc/f_u32.c
index 8a2413103..59aa4e3a2 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);