From: Craig Kewley Date: Mon, 1 May 2017 20:22:35 +0000 (+0100) Subject: staging: octeon: use __func__ instead of func name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=355e6e4913f1b3594f0d811e888fb6a572a81b2b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: octeon: use __func__ instead of func name Fix checkpatch warning: WARNING: Prefer using '"%s...", __func__' to using 'INTERFACE' Signed-off-by: Craig Kewley Signed-off-by: Greg Kroah-Hartman --- 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__); } /**