diff options
author | Breno Lima <breno.lima@nxp.com> | 2021-03-25 17:30:14 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-04-08 09:18:29 +0200 |
commit | e449e2d405eb74e1e6615ea8f49a780d00a07952 (patch) | |
tree | 843467e3665b7a3ec12d25f2ad91bd2dac81a4a0 /scripts/setlocalversion | |
parent | 58f75efeaf30c786c26fade79d127c988b813751 (diff) | |
download | u-boot-e449e2d405eb74e1e6615ea8f49a780d00a07952.zip u-boot-e449e2d405eb74e1e6615ea8f49a780d00a07952.tar.gz u-boot-e449e2d405eb74e1e6615ea8f49a780d00a07952.tar.bz2 |
imx: hab: Fix build warnings in 32-bit targets
When building 32-bit targets with CONFIG_SECURE_BOOT and DEBUG enabled
the following warnings are displayed:
arch/arm/mach-imx/hab.c:840:41: warning: format '%lx' expects argument \
of type 'long unsigned int', but argument 3 has type 'uint32_t \
{aka unsigned int}' [-Wformat=]
printf("HAB check target 0x%08x-0x%08lx fail\n",
~~~~^
%08x
ddr_start, ddr_start + bytes);
arch/arm/mach-imx/hab.c:845:45: warning: format '%x' expects argument \
of type 'unsigned int', but argument 3 has type 'ulong \
{aka long unsigned int}' [-Wformat=]
printf("\nivt_offset = 0x%x, ivt addr = 0x%x\n", ivt_offset, ivt_addr);
~^
%lx
Fix warnings by providing the correct data type.
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'scripts/setlocalversion')
0 files changed, 0 insertions, 0 deletions