Skip to content

Commit

Permalink
TC: Fix the wrong format specifier
Browse files Browse the repository at this point in the history
The format specifier of "unsigned int" in pr_info()
should be "%u", not "%d".

Signed-off-by: zhang jiao <[email protected]>
Acked-by: Maciej W. Rozycki <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
  • Loading branch information
zhang jiao authored and tsbogend committed Nov 12, 2024
1 parent c4a0a4a commit 74b4630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tc/tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static int __init tc_init(void)
if (tc_bus.info.slot_size) {
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,
tc_clock / 10, tc_clock % 10,
tc_bus.info.parity ? "" : "out");
Expand Down

0 comments on commit 74b4630

Please sign in to comment.