[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210723075804.1387e789@hermes.local>
Date: Fri, 23 Jul 2021 07:58:04 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Justin Iurman <justin.iurman@...ege.be>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH iproute2-next 1/3] Add, show, link, remove IOAM
namespaces and schemas
On Fri, 23 Jul 2021 16:48:00 +0200
Justin Iurman <justin.iurman@...ege.be> wrote:
> + sprintf(data, "0x%" PRIx32,
> + (uint32_t)rta_getattr_u32(attrs[IOAM6_ATTR_NS_DATA]));
> +
> + print_string(PRINT_ANY, "data", ", data %s", data)
The json_print has ability to handle hex already
Why not
print_hex(PRINT_ANY, "data", ", data %#x",
rta_getattr_u32(...
Powered by blists - more mailing lists