diff options
author | Yann Gautier <yann.gautier@foss.st.com> | 2022-04-14 09:40:01 +0200 |
---|---|---|
committer | Yann Gautier <yann.gautier@st.com> | 2023-09-27 16:21:58 +0200 |
commit | 6fef0f67e47b3b42fc9b5dbc55bdef00a970765d (patch) | |
tree | c9cc1b3c276086faa1ad2c1cb66958bdc453695c /plat | |
parent | a2500ab7aba27ed5d613718f5f15371bbe895ca6 (diff) |
fix(st-uart): allow 64 bit compilation
Change a %x in %zx to print a size_t variable.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: I27ac3739f4a2ec3b33c34d2257fa858cbd1aae6a
Diffstat (limited to 'plat')
-rw-r--r-- | plat/st/common/stm32cubeprogrammer_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/st/common/stm32cubeprogrammer_uart.c b/plat/st/common/stm32cubeprogrammer_uart.c index e4a5338eb..0916099c1 100644 --- a/plat/st/common/stm32cubeprogrammer_uart.c +++ b/plat/st/common/stm32cubeprogrammer_uart.c @@ -409,7 +409,7 @@ static int uart_read(uint8_t id, uintptr_t buffer, size_t length) handle.addr = (uint8_t *)buffer; handle.len = length; - INFO("UART: read phase %u at 0x%lx size 0x%x\n", + INFO("UART: read phase %u at 0x%lx size 0x%zx\n", id, buffer, length); while (!start_done) { ret = uart_receive_command(&command); |