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

From: Gabriel Viso Carrera
Date: Sat Jun 25 2022 - 05:05:05 EST


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@xxxxxxxxxx>
---
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