diff mbox series

TC: Fix the wrong format specifier

Message ID 20241112015608.3498-1-zhangjiao2@cmss.chinamobile.com (mailing list archive)
State Accepted
Commit 74b4630e3f3a658c039e2f9aab9e5e58d52b9f1b
Headers show
Series TC: Fix the wrong format specifier | expand

Commit Message

zhangjiao2 Nov. 12, 2024, 1:56 a.m. UTC
From: zhang jiao <zhangjiao2@cmss.chinamobile.com>

The format specifier of "unsigned int" in pr_info()
should be "%u", not "%d".

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
 drivers/tc/tc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Maciej W. Rozycki Nov. 12, 2024, 1:24 p.m. UTC | #1
On Tue, 12 Nov 2024, zhangjiao2 wrote:

> From: zhang jiao <zhangjiao2@cmss.chinamobile.com>
> 
> 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>

 Good catch, thank you!

  Maciej
diff mbox series

Patch

diff --git a/drivers/tc/tc.c b/drivers/tc/tc.c
index c5b17dd8f587..0629f277f7b4 100644
--- a/drivers/tc/tc.c
+++ b/drivers/tc/tc.c
@@ -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");