]> git.baikalelectronics.ru Git - uboot.git/commit
lib: aes: build failure with DEBUG=1
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 28 Dec 2020 16:56:27 +0000 (17:56 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 17 Jan 2021 00:17:11 +0000 (19:17 -0500)
commitae8bf075cb025c381671a82dfd579ba02967a4c5
treef78526b7dfff6e36e1dfde1435cb38a0465cfaea
parent139e1fcdce6381297e81308d0ac1e144e3f137ac
lib: aes: build failure with DEBUG=1

Building fails with DEBUG=1:

lib/aes.c: In function â€˜debug_print_vector’:
lib/aes.c:622:45: error:
cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
  622 |  printf("%s [%d] @0x%08x", name, num_bytes, (u32)data);

Pointers can only be cast to (uintptr_t). But anyway we have
%p for printing pointers.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/aes.c