[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20170501202235.37829-1-craigkewley@gmail.com>
Date: Mon, 1 May 2017 21:22:35 +0100
From: Craig Kewley <craigkewley@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Aaro Koskinen <aaro.koskinen@...ia.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Craig Kewley <craigkewley@...il.com>
Subject: [PATCH] staging: octeon: use __func__ instead of func name
Fix checkpatch warning:
WARNING: Prefer using '"%s...", __func__' to using 'INTERFACE'
Signed-off-by: Craig Kewley <craigkewley@...il.com>
---
drivers/staging/octeon/ethernet-util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/octeon/ethernet-util.h b/drivers/staging/octeon/ethernet-util.h
index 617da8037a4d..cb5540dc0e9d 100644
--- a/drivers/staging/octeon/ethernet-util.h
+++ b/drivers/staging/octeon/ethernet-util.h
@@ -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__);
}
/**
--
2.12.2
Powered by blists - more mailing lists