lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ