Skip to contentSkip to conversation

staging: octeon: use __func__ instead of func name

PATCH New Craig Kewley 1 participant 1 message May 1, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: octeon: use __func__ instead of func name

Fix checkpatch warning:
WARNING: Prefer using '"%s...", __func__' to using 'INTERFACE'

---
 drivers/staging/octeon/ethernet-util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/octeon/ethernet-util.h +1 -1
index 617da8037a4d..cb5540dc0e9d 100644
@@ -39,7 +39,7 @@ static inline int INTERFACE(int ipd_port)
 	interface = cvmx_helper_get_interface_num(ipd_port);
 	if (interface >= 0)
 		return interface;
-	panic("Illegal ipd_port %d passed to INTERFACE\n", ipd_port);
+	panic("Illegal ipd_port %d passed to %s\n", ipd_port, __func__);
 }
 
 /**
Signature · 1 line
2.12.2