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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250725160930.23f9c420@kernel.org>
Date: Fri, 25 Jul 2025 16:09:30 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Tony Nguyen <anthony.l.nguyen@...el.com>
Cc: davem@...emloft.net, pabeni@...hat.com, edumazet@...gle.com,
 andrew+netdev@...n.ch, netdev@...r.kernel.org, Michal Swiatkowski
 <michal.swiatkowski@...ux.intel.com>, aleksander.lobakin@...el.com,
 przemyslaw.kitszel@...el.com, piotr.kwapulinski@...el.com,
 aleksandr.loktionov@...el.com, jedrzej.jagielski@...el.com,
 larysa.zaremba@...el.com
Subject: Re: [PATCH net-next 5/8] libie: add adminq helper for converting
 err to str

On Thu, 24 Jul 2025 11:28:21 -0700 Tony Nguyen wrote:
> +const char *libie_aq_str(enum libie_aq_err err)
> +{
> +	if (err >= ARRAY_SIZE(libie_aq_str_arr) ||
> +	    !libie_aq_str_arr[err])
> +		err = __LIBIE_AQ_STR_NUM;
> +
> +	return libie_aq_str_arr[err];

All the LIBIE error values map to the POSIX ones, right? And this is
mostly used in error messages. So why not use %pe I wonder..

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ