[PATCH 1/1] dfu: dfu_sf: use correct print code

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Dec 27 09:58:05 CET 2020


For printing unsigned int %u has to be used.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 drivers/dfu/dfu_sf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c
index 318e43c179..76b629a334 100644
--- a/drivers/dfu/dfu_sf.c
+++ b/drivers/dfu/dfu_sf.c
@@ -131,7 +131,7 @@ static struct spi_flash *parse_dev(char *devstr)

 	dev = spi_flash_probe(bus, cs, speed, mode);
 	if (!dev) {
-		printf("Failed to create SPI flash at %d:%d:%d:%d\n",
+		printf("Failed to create SPI flash at %u:%u:%u:%u\n",
 		       bus, cs, speed, mode);
 		return NULL;
 	}
--
2.29.2



More information about the U-Boot mailing list