]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sysdev: Fixup warning message
authorBorislav Petkov <borislav.petkov@amd.com>
Tue, 1 Feb 2011 16:19:57 +0000 (17:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 Feb 2011 23:39:17 +0000 (15:39 -0800)
Use gcc's __func__ instead of the function name.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/sys.c

index 1667aaf4fde683724bf44e0653233dfa348a4362..b094e0d6139fa4f85b56206340d027a5e5a7d8ef 100644 (file)
@@ -181,8 +181,8 @@ int sysdev_driver_register(struct sysdev_class *cls, struct sysdev_driver *drv)
        int err = 0;
 
        if (!cls) {
-               WARN(1, KERN_WARNING "sysdev: invalid class passed to "
-                       "sysdev_driver_register!\n");
+               WARN(1, KERN_WARNING "sysdev: invalid class passed to %s!\n",
+                       __func__);
                return -EINVAL;
        }