[dpdk-dev] [PATCH] devtools: add llx format specifier check

Thomas Monjalon thomas at monjalon.net
Tue Feb 9 17:38:53 CET 2021


09/02/2021 16:26, Ferruh Yigit:
> %llx tends to be wrong when used for fixed size, like uint64_t,
> variables, adding a warning to double check them.
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> ---
> +	# check %llx usage
> +	awk -v FOLDERS='lib drivers app examples' \
> +		-v EXPRESSIONS='%ll*[xud]' \
> +		-v RET_ON_FAIL=1 \
> +		-v MESSAGE='Please check %llx usage which tends to be wrong most of the times' \

+1

It reminds me this old email:
http://mails.dpdk.org/archives/dev/2018-February/091483.html

The title mentions llx, but it should be %ll in general:
	devtools: check %ll format specifier




More information about the dev mailing list