diff options
author | Iwona Winiarska <iwona.winiarska@intel.com> | 2022-05-17 00:37:02 +0300 |
---|---|---|
committer | Iwona Winiarska <iwona.winiarska@intel.com> | 2022-05-23 11:53:13 +0300 |
commit | e4816c73b4b2c6c62d410f83998a8313e7adc521 (patch) | |
tree | 0f1eca29b8a243930e92136f10c3caa2fea7c9d1 /drivers | |
parent | 64bcf8204339d65eeff14cdaba29f59bed4e3c92 (diff) | |
download | linux-e4816c73b4b2c6c62d410f83998a8313e7adc521.tar.xz |
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 <iwona.winiarska@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/spi-nor/controllers/aspeed-smc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |