mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 17:14:21 +00:00
fix(stm32mp1): fix enum prints
With gcc-11, the -Wformat-signedness warning complains about enum values that should be printed as unsigned values. But the current version of compiler used in CI states that this parameter is signed. Just cast the value then. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ic0655e5ba9c44fe6abcd9958d7a9972f5de3b7ef
This commit is contained in:
parent
9fa9a0c55c
commit
ceab2fc344
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ static void register_periph(enum stm32mp_shres id, unsigned int state)
|
|||
(id <= STM32MP1_SHRES_GPIOZ(7)) &&
|
||||
((unsigned int)(id - STM32MP1_SHRES_GPIOZ(0)) >= get_gpioz_nbpin())) {
|
||||
ERROR("Invalid GPIO pin %d, %u pin(s) available\n",
|
||||
id - STM32MP1_SHRES_GPIOZ(0), get_gpioz_nbpin());
|
||||
(int)(id - STM32MP1_SHRES_GPIOZ(0)), get_gpioz_nbpin());
|
||||
panic();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue