Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

zhang jiao and committed by
Mark Brown
dce35dd2 8426899f

+1 -1
+1 -1
tools/spi/spidev_fdx.c
··· 99 99 return; 100 100 } 101 101 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", 103 103 name, mode, bits, lsb ? "(lsb first) " : "", speed); 104 104 } 105 105