[PATCH] coresight: etm4x: Don't bother the user with nonessential log message

Tian Tao tiantao6 at hisilicon.com
Wed Aug 2 23:22:45 PDT 2023


Each cpu will print the following log when initializing
ETM "coresight etm1: CPU1: etm v4.5 initialized", if there are a lot
of cpus, e.g. 128. there will be a screen full of this log. replace
dev_info with dev_dbg prints only when needed.

Signed-off-by: Tian Tao <tiantao6 at hisilicon.com>
---
 drivers/hwtracing/coresight/coresight-etm4x-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c
index 7e307022303a..7b51e8594fd5 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x-core.c
+++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c
@@ -2033,7 +2033,7 @@ static int etm4_add_coresight_dev(struct etm4_init_arg *init_arg)
 
 	etmdrvdata[drvdata->cpu] = drvdata;
 
-	dev_info(&drvdata->csdev->dev, "CPU%d: %s v%d.%d initialized\n",
+	dev_dbg(&drvdata->csdev->dev, "CPU%d: %s v%d.%d initialized\n",
 		 drvdata->cpu, type_name, major, minor);
 
 	if (boot_enable) {
-- 
2.33.0




More information about the linux-arm-kernel mailing list