Thread (8 messages) 8 messages, 2 authors, 2021-07-23

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

flat view

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-07-23 14:58:10

On Fri, 23 Jul 2021 16:48:00 +0200
Justin Iurman [off-list ref] wrote:
quoted hunk ↗ jump to hunk
+		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(...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help