diff options
author | Yann Gautier <yann.gautier@st.com> | 2022-02-14 15:21:21 +0100 |
---|---|---|
committer | Yann Gautier <yann.gautier@st.com> | 2022-02-15 18:09:51 +0100 |
commit | afcdc9d8d71e2b60071d3d34704f0e598e67a514 (patch) | |
tree | 688e4374da3dcd5c9ea2b2fd876994770cf3c995 /drivers/st/fmc | |
parent | 6e86b462490429fee6db877338a649b0e199b0ec (diff) | |
download | arm-trusted-firmware-afcdc9d8d71e2b60071d3d34704f0e598e67a514.tar.gz |
fix(st-fmc): fix type in message
As page is unsigned, we should use %u and not %d.
Find with -Wformat-signedness.
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I7205971ee5e83163e4fe47d33bb9e90832b59ae0
Diffstat (limited to 'drivers/st/fmc')
-rw-r--r-- | drivers/st/fmc/stm32_fmc2_nand.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/st/fmc/stm32_fmc2_nand.c b/drivers/st/fmc/stm32_fmc2_nand.c index e9ab6dafd..9bdc85478 100644 --- a/drivers/st/fmc/stm32_fmc2_nand.c +++ b/drivers/st/fmc/stm32_fmc2_nand.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2021, STMicroelectronics - All Rights Reserved + * Copyright (c) 2019-2022, STMicroelectronics - All Rights Reserved * * SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ @@ -9,10 +9,6 @@ #include <limits.h> #include <stdint.h> -#include <libfdt.h> - -#include <platform_def.h> - #include <common/debug.h> #include <drivers/clk.h> #include <drivers/delay_timer.h> @@ -22,6 +18,9 @@ #include <drivers/st/stm32mp_reset.h> #include <lib/mmio.h> #include <lib/utils_def.h> +#include <libfdt.h> + +#include <platform_def.h> /* Timeout for device interface reset */ #define TIMEOUT_US_1_MS 1000U @@ -516,7 +515,7 @@ static int stm32_fmc2_read_page(struct nand_device *nand, unsigned int s; int ret; - VERBOSE(">%s page %i buffer %lx\n", __func__, page, buffer); + VERBOSE(">%s page %u buffer %lx\n", __func__, page, buffer); ret = nand_read_page_cmd(page, 0U, 0U, 0U); if (ret != 0) { |