summaryrefslogtreecommitdiffstats
path: root/drivers/base/sys.c
diff options
context:
space:
mode:
authorBorislav Petkov2011-02-01 17:19:57 +0100
committerGreg Kroah-Hartman2011-02-04 00:39:17 +0100
commit345279bc105e5a331ee81b0e8446b61f2c155784 (patch)
treeef6039b8349c59ad29a78f6d165889111d5767f8 /drivers/base/sys.c
parentfirmware_classs: change val uevent's type to bool (diff)
downloadkernel-qcow2-linux-345279bc105e5a331ee81b0e8446b61f2c155784.tar.gz
kernel-qcow2-linux-345279bc105e5a331ee81b0e8446b61f2c155784.tar.xz
kernel-qcow2-linux-345279bc105e5a331ee81b0e8446b61f2c155784.zip
sysdev: Fixup warning message
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>
Diffstat (limited to 'drivers/base/sys.c')
-rw-r--r--drivers/base/sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/sys.c b/drivers/base/sys.c
index 1667aaf4fde6..b094e0d6139f 100644
--- a/drivers/base/sys.c
+++ b/drivers/base/sys.c
@@ -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;
}