From 43bbdca04f5a20bb4e648e18fc63061b6a6e4ecf Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 14 Feb 2022 11:10:59 +0100 Subject: [PATCH] fix(stm32mp1): correct types in messages Avoid warnings when -Wformat-signedness is enabled. Signed-off-by: Yann Gautier Change-Id: I0ca41cb96826b4f7f9bcf77909fad110325c1e91 --- plat/st/stm32mp1/stm32mp1_boot_device.c | 4 ++-- plat/st/stm32mp1/stm32mp1_shared_resources.c | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plat/st/stm32mp1/stm32mp1_boot_device.c b/plat/st/stm32mp1/stm32mp1_boot_device.c index 27dbf4ed2..b05de1cb8 100644 --- a/plat/st/stm32mp1/stm32mp1_boot_device.c +++ b/plat/st/stm32mp1/stm32mp1_boot_device.c @@ -115,8 +115,8 @@ ecc: } } - VERBOSE("OTP: Block %i Page %i Size %lli\n", nand_dev->block_size, - nand_dev->page_size, nand_dev->size); + VERBOSE("OTP: Block %u Page %u Size %llu\n", nand_dev->block_size, + nand_dev->page_size, nand_dev->size); return 0; } diff --git a/plat/st/stm32mp1/stm32mp1_shared_resources.c b/plat/st/stm32mp1/stm32mp1_shared_resources.c index 6b1bcaa13..2a518e19d 100644 --- a/plat/st/stm32mp1/stm32mp1_shared_resources.c +++ b/plat/st/stm32mp1/stm32mp1_shared_resources.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2021, STMicroelectronics - All Rights Reserved + * Copyright (c) 2017-2022, STMicroelectronics - All Rights Reserved * * SPDX-License-Identifier: BSD-3-Clause */ @@ -7,12 +7,11 @@ #include #include -#include - #include #include #include +#include #include /* @@ -164,7 +163,7 @@ static void register_periph(enum stm32mp_shres id, unsigned int state) if ((id >= STM32MP1_SHRES_GPIOZ(0)) && (id <= STM32MP1_SHRES_GPIOZ(7)) && ((unsigned int)(id - STM32MP1_SHRES_GPIOZ(0)) >= get_gpioz_nbpin())) { - ERROR("Invalid GPIO pin %u, %u pin(s) available\n", + ERROR("Invalid GPIO pin %d, %u pin(s) available\n", id - STM32MP1_SHRES_GPIOZ(0), get_gpioz_nbpin()); panic(); }