spi: spidev_test: Use %u to format unsigned numbers
Consistently use %u to format unsigned numbers. For "bits" this doesn't matter that much, as it is "uint8_t". However, "speed" is "uint32_t", so in case people use "-s -1" to force the maximum, they would see: max speed: -1 Hz (4294967 KHz) While at it, use "k" (kilo) instead of "K" (kelvin) in "kHz". Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20200608100049.30648-1-geert+renesas@glider.be Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
8bdd79dae1
Коммит
9ec8ade812
|
@ -461,8 +461,8 @@ int main(int argc, char *argv[])
|
|||
pabort("can't get max speed hz");
|
||||
|
||||
printf("spi mode: 0x%x\n", mode);
|
||||
printf("bits per word: %d\n", bits);
|
||||
printf("max speed: %d Hz (%d KHz)\n", speed, speed/1000);
|
||||
printf("bits per word: %u\n", bits);
|
||||
printf("max speed: %u Hz (%u kHz)\n", speed, speed/1000);
|
||||
|
||||
if (input_tx)
|
||||
transfer_escaped_string(fd, input_tx);
|
||||
|
|
Загрузка…
Ссылка в новой задаче