]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
TC: Fix the wrong format specifier
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Tue, 12 Nov 2024 01:56:08 +0000 (09:56 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 12 Nov 2024 14:48:08 +0000 (15:48 +0100)
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>
drivers/tc/tc.c

index c5b17dd8f587a9d83f4a99b79ec5afd7c1753ac8..0629f277f7b43b4aa9aaa77f5d8868a95fe9367c 100644 (file)
@@ -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");