Skip to content

Commit dce35dd

Browse files
zhang jiaobroonie
authored andcommitted
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>
1 parent 8426899 commit dce35dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/spi/spidev_fdx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static void dumpstat(const char *name, int fd)
9999
return;
100100
}
101101

102-
printf("%s: spi mode 0x%x, %d bits %sper word, %d Hz max\n",
102+
printf("%s: spi mode 0x%x, %d bits %sper word, %u Hz max\n",
103103
name, mode, bits, lsb ? "(lsb first) " : "", speed);
104104
}
105105

0 commit comments

Comments
 (0)