spi: spidev_fdx: Fix the wrong format specifier
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Wed, 4 Sep 2024 07:35:50 +0000 (15:35 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Sep 2024 15:50:33 +0000 (16:50 +0100)
The unsigned int should use "%u" instead of "%d".

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Link: https://patch.msgid.link/20240904073550.103618-1-zhangjiao2@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
tools/spi/spidev_fdx.c

index 7d2a867cd4aee6374578826fe47671f547a0d106..bc9c4f6c3ba8eb1e0b834edf8b823c5ffdaa7f75 100644 (file)
@@ -99,7 +99,7 @@ static void dumpstat(const char *name, int fd)
                return;
        }
 
-       printf("%s: spi mode 0x%x, %d bits %sper word, %d Hz max\n",
+       printf("%s: spi mode 0x%x, %d bits %sper word, %u Hz max\n",
                name, mode, bits, lsb ? "(lsb first) " : "", speed);
 }