diff options
author | zhang jiao <zhangjiao2@cmss.chinamobile.com> | 2024-09-04 15:35:50 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-09-04 16:50:33 +0100 |
commit | dce35dd27684640508ff330b8235c4671159743e (patch) | |
tree | 0fd3af704182a87257e1de41f404cd83b05fa5b7 /tools/spi | |
parent | 8426899ff62cd21ebc30da40b53a81de1e3d0857 (diff) |
spi: spidev_fdx: Fix the wrong format specifier
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>
Diffstat (limited to 'tools/spi')
-rw-r--r-- | tools/spi/spidev_fdx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/spi/spidev_fdx.c b/tools/spi/spidev_fdx.c index 7d2a867cd4ae..bc9c4f6c3ba8 100644 --- a/tools/spi/spidev_fdx.c +++ b/tools/spi/spidev_fdx.c @@ -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); } |