From afcdc9d8d71e2b60071d3d34704f0e598e67a514 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 14 Feb 2022 15:21:21 +0100 Subject: [PATCH] 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 Change-Id: I7205971ee5e83163e4fe47d33bb9e90832b59ae0 --- drivers/st/fmc/stm32_fmc2_nand.c | 11 +++++------ 1 file 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 #include -#include - -#include - #include #include #include @@ -22,6 +18,9 @@ #include #include #include +#include + +#include /* 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) {