From e4816c73b4b2c6c62d410f83998a8313e7adc521 Mon Sep 17 00:00:00 2001 From: Iwona Winiarska Date: Mon, 16 May 2022 23:37:02 +0200 Subject: mtd: spi-nor: aspeed: Fix wrong print format Fix the following compilation warning: drivers/mtd/spi-nor/controllers/aspeed-smc.c:1334:17: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 1334 | dev_info(dev, "tx width: %ld\n", spi_tx_width); | ^~~~~~~~~~~~~~~~~ Fixes: 9b4da1ccbb55 ("SPI Quad IO driver support AST2600") Signed-off-by: Iwona Winiarska --- drivers/mtd/spi-nor/controllers/aspeed-smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/controllers/aspeed-smc.c b/drivers/mtd/spi-nor/controllers/aspeed-smc.c index 367d97abb3f6..5c9fe9dd5302 100644 --- a/drivers/mtd/spi-nor/controllers/aspeed-smc.c +++ b/drivers/mtd/spi-nor/controllers/aspeed-smc.c @@ -1331,7 +1331,7 @@ static int aspeed_smc_setup_flash(struct aspeed_smc_controller *controller, &spi_tx_width)) { spi_tx_width = 2; } - dev_info(dev, "tx width: %ld\n", spi_tx_width); + dev_info(dev, "tx width: %u\n", spi_tx_width); hwcaps.mask = SNOR_HWCAPS_READ | SNOR_HWCAPS_READ_FAST | -- cgit v1.2.3