diff mbox series

[1/3] staging: Thunderbolt: ctl.c: Fixed 2 literal style coding issues

Message ID 20220625084913.603556-2-gabriel@gvisoc.com
State New
Headers show
Series [1/3] staging: Thunderbolt: ctl.c: Fixed 2 literal style coding issues | expand

Commit Message

Gabriel Viso Carrera June 25, 2022, 8:49 a.m. UTC
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@gvisoc.com>
---
 drivers/thunderbolt/ctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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;