[PATCH 1/2] clkdev: improve ID length error message

Alexander Stein alexander.stein at ew.tq-group.com
Fri Nov 14 01:09:32 PST 2025


From: Matthias Schiffer <matthias.schiffer at tq-group.com>

"is greater than X" is very unclear if you're not familiar with the
code. Change the wording to "is longer than X bytes". In addition, add a
space between device and connection ID to make it easier to determine
which part of the ID is responsible for the length.

Signed-off-by: Matthias Schiffer <matthias.schiffer at tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>
---
 drivers/clk/clkdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
index e0bede6350e11..f46324622cca0 100644
--- a/drivers/clk/clkdev.c
+++ b/drivers/clk/clkdev.c
@@ -201,7 +201,7 @@ vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt,
 	else
 		vaf.fmt = "null-device";
 	vaf.va = &ap_copy;
-	pr_err("%pV:%s: %s ID is greater than %zu\n",
+	pr_err("%pV: %s: %s ID is longer than %zu bytes\n",
 	       &vaf, con_id, failure, max_size);
 	va_end(ap_copy);
 
-- 
2.43.0




More information about the linux-arm-kernel mailing list