Re: [PATCH iproute2-next 1/3] Add, show, link, remove IOAM namespaces and schemas From: Justin Iurman <hidden> Date: 2021-07-23 15:07:03 quoted+ 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(... Hmmm, sorry for that, you're right. I already had this code ready for a long time and forgot to use print_hex instead (as I did for patch #2).
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help