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>
This commit is contained in:
parent
8426899ff6
commit
dce35dd276
@ -99,7 +99,7 @@ static void dumpstat(const char *name, int fd)
|
|||||||
return;
|
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);
|
name, mode, bits, lsb ? "(lsb first) " : "", speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user