]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dfu: dfu_sf: use correct print code
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 27 Dec 2020 08:58:05 +0000 (09:58 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 7 Feb 2021 18:22:54 +0000 (19:22 +0100)
For printing unsigned int %u has to be used.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/dfu/dfu_sf.c

index 318e43c179b2d875e9582a9d8cf0a6856a41dd14..76b629a334f50faecdda810f81f97dc2ce30c7f7 100644 (file)
@@ -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;
        }