mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:46:16 +00:00
TC: Fix the wrong format specifier
The format specifier of "unsigned int" in pr_info() should be "%u", not "%d". Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> Acked-by: Maciej W. Rozycki <macro@orcam.me.uk> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
c4a0a4a45a
commit
74b4630e3f
@ -162,7 +162,7 @@ static int __init tc_init(void)
|
|||||||
if (tc_bus.info.slot_size) {
|
if (tc_bus.info.slot_size) {
|
||||||
unsigned int tc_clock = tc_get_speed(&tc_bus) / 100000;
|
unsigned int tc_clock = tc_get_speed(&tc_bus) / 100000;
|
||||||
|
|
||||||
pr_info("tc: TURBOchannel rev. %d at %d.%d MHz "
|
pr_info("tc: TURBOchannel rev. %d at %u.%u MHz "
|
||||||
"(with%s parity)\n", tc_bus.info.revision,
|
"(with%s parity)\n", tc_bus.info.revision,
|
||||||
tc_clock / 10, tc_clock % 10,
|
tc_clock / 10, tc_clock % 10,
|
||||||
tc_bus.info.parity ? "" : "out");
|
tc_bus.info.parity ? "" : "out");
|
||||||
|
Loading…
Reference in New Issue
Block a user