staging: octeon: use __func__ instead of func name
authorCraig Kewley <craigkewley@gmail.com>
Mon, 1 May 2017 20:22:35 +0000 (21:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 05:41:58 +0000 (07:41 +0200)
Fix checkpatch warning:
WARNING: Prefer using '"%s...", __func__' to using 'INTERFACE'

Signed-off-by: Craig Kewley <craigkewley@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-util.h

index 617da8037a4dd28d791a2c775e48da4a9be30234..cb5540dc0e9dfaeebca4dd82c7a9d9e5f71edd23 100644 (file)
@@ -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__);
 }
 
 /**