Subject: Re: [PATCH iproute2-next 1/3] Add, show, link, remove IOAM namespaces and schemas

From: Stephen Hemminger <[email-masked]>
Date: Fri, 23 Jul 2021 07:58:04 -0700

On Fri, 23 Jul 2021 16:48:00 +0200
Justin Iurman <[email-masked]> 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(...