mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-24 13:55:56 +00:00
fix(stm32mp1): correct types in messages
Avoid warnings when -Wformat-signedness is enabled. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I0ca41cb96826b4f7f9bcf77909fad110325c1e91
This commit is contained in:
parent
47065ffe44
commit
43bbdca04f
2 changed files with 5 additions and 6 deletions
|
@ -115,8 +115,8 @@ ecc:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VERBOSE("OTP: Block %i Page %i Size %lli\n", nand_dev->block_size,
|
VERBOSE("OTP: Block %u Page %u Size %llu\n", nand_dev->block_size,
|
||||||
nand_dev->page_size, nand_dev->size);
|
nand_dev->page_size, nand_dev->size);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -7,12 +7,11 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <platform_def.h>
|
|
||||||
|
|
||||||
#include <common/debug.h>
|
#include <common/debug.h>
|
||||||
#include <drivers/st/etzpc.h>
|
#include <drivers/st/etzpc.h>
|
||||||
#include <drivers/st/stm32_gpio.h>
|
#include <drivers/st/stm32_gpio.h>
|
||||||
|
|
||||||
|
#include <platform_def.h>
|
||||||
#include <stm32mp_shared_resources.h>
|
#include <stm32mp_shared_resources.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -164,7 +163,7 @@ static void register_periph(enum stm32mp_shres id, unsigned int state)
|
||||||
if ((id >= STM32MP1_SHRES_GPIOZ(0)) &&
|
if ((id >= STM32MP1_SHRES_GPIOZ(0)) &&
|
||||||
(id <= STM32MP1_SHRES_GPIOZ(7)) &&
|
(id <= STM32MP1_SHRES_GPIOZ(7)) &&
|
||||||
((unsigned int)(id - STM32MP1_SHRES_GPIOZ(0)) >= get_gpioz_nbpin())) {
|
((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());
|
id - STM32MP1_SHRES_GPIOZ(0), get_gpioz_nbpin());
|
||||||
panic();
|
panic();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue