[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241120062605.35739-1-zhangjiao2@cmss.chinamobile.com>
Date: Wed, 20 Nov 2024 14:26:05 +0800
From: zhangjiao2 <zhangjiao2@...s.chinamobile.com>
To: jonathan.lemon@...il.com
Cc: vadim.fedorenko@...ux.dev,
richardcochran@...il.com,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
zhang jiao <zhangjiao2@...s.chinamobile.com>
Subject: [PATCH] ptp: ocp: Fix the wrong format specifier
From: zhang jiao <zhangjiao2@...s.chinamobile.com>
Use '%u' instead of '%d' for unsigned int.
Signed-off-by: zhang jiao <zhangjiao2@...s.chinamobile.com>
---
drivers/ptp/ptp_ocp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
index 5feecaadde8e..52e46fee8e5e 100644
--- a/drivers/ptp/ptp_ocp.c
+++ b/drivers/ptp/ptp_ocp.c
@@ -1455,7 +1455,7 @@ ptp_ocp_verify(struct ptp_clock_info *ptp_info, unsigned pin,
* channels 1..4 are the frequency generators.
*/
if (chan)
- snprintf(buf, sizeof(buf), "OUT: GEN%d", chan);
+ snprintf(buf, sizeof(buf), "OUT: GEN%u", chan);
else
snprintf(buf, sizeof(buf), "OUT: PHC");
break;
--
2.33.0
Powered by blists - more mailing lists