mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 21:44:15 +00:00
fix(st-clock): print enums as unsigned
With gcc-11, the -Wformat-signedness warning complains about enum values that should be printed as unsigned values. Change %d to %u for several lines in the clock driver. Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Ia2d24e6feef5e852e0a6bfaa1286fe605f9a16b7
This commit is contained in:
parent
92537e170d
commit
9fa9a0c55c
1 changed files with 3 additions and 3 deletions
|
@ -1564,7 +1564,7 @@ static int stm32mp1_pll_output(enum stm32mp1_pll_id pll_id, uint32_t output)
|
|||
/* Wait PLL lock */
|
||||
while ((mmio_read_32(pllxcr) & RCC_PLLNCR_PLLRDY) == 0U) {
|
||||
if (timeout_elapsed(timeout)) {
|
||||
ERROR("PLL%d start failed @ 0x%lx: 0x%x\n",
|
||||
ERROR("PLL%u start failed @ 0x%lx: 0x%x\n",
|
||||
pll_id, pllxcr, mmio_read_32(pllxcr));
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
@ -1593,7 +1593,7 @@ static int stm32mp1_pll_stop(enum stm32mp1_pll_id pll_id)
|
|||
/* Wait PLL stopped */
|
||||
while ((mmio_read_32(pllxcr) & RCC_PLLNCR_PLLRDY) != 0U) {
|
||||
if (timeout_elapsed(timeout)) {
|
||||
ERROR("PLL%d stop failed @ 0x%lx: 0x%x\n",
|
||||
ERROR("PLL%u stop failed @ 0x%lx: 0x%x\n",
|
||||
pll_id, pllxcr, mmio_read_32(pllxcr));
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
@ -1852,7 +1852,7 @@ int stm32mp1_clk_init(void)
|
|||
for (i = (enum stm32mp1_pll_id)0; i < _PLL_NB; i++) {
|
||||
char name[12];
|
||||
|
||||
snprintf(name, sizeof(name), "st,pll@%d", i);
|
||||
snprintf(name, sizeof(name), "st,pll@%u", i);
|
||||
plloff[i] = fdt_rcc_subnode_offset(name);
|
||||
|
||||
pllcfg_valid[i] = fdt_check_node(plloff[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue