From: Borislav Petkov Date: Tue, 1 Feb 2011 16:19:57 +0000 (+0100) Subject: sysdev: Fixup warning message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=345279bc105e5a331ee81b0e8446b61f2c155784;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sysdev: Fixup warning message Use gcc's __func__ instead of the function name. Signed-off-by: Borislav Petkov Signed-off-by: Greg Kroah-Hartman --- 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; }