[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220625084913.603556-2-gabriel@gvisoc.com>
Date: Sat, 25 Jun 2022 18:49:11 +1000
From: Gabriel Viso Carrera <gabriel@...soc.com>
To: andreas.noever@...il.com
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Gabriel Viso Carrera <gabriel@...soc.com>
Subject: [PATCH 1/3] staging: Thunderbolt: ctl.c: Fixed 2 literal style coding issues
In lines 1028 and 1054, there were WARN calls with hardcoded literal
function name. Replaced with the recommended %s and __func__.
Signed-off-by: Gabriel Viso Carrera <gabriel@...soc.com>
---
drivers/thunderbolt/ctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/thunderbolt/ctl.c b/drivers/thunderbolt/ctl.c
index e92c658dba1c..4b841fbb3628 100644
--- a/drivers/thunderbolt/ctl.c
+++ b/drivers/thunderbolt/ctl.c
@@ -1025,7 +1025,7 @@ int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port,
break;
default:
- WARN(1, "tb_cfg_read: %d\n", res.err);
+ WARN(1, "%s: %d\n", __func__, res.err);
break;
}
return res.err;
@@ -1051,7 +1051,7 @@ int tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port,
break;
default:
- WARN(1, "tb_cfg_write: %d\n", res.err);
+ WARN(1, "%s: %d\n", __func__, res.err);
break;
}
return res.err;
--
2.36.1
Powered by blists - more mailing lists