sysdev: Fixup warning message
PATCH 2/2 sysdev: Fixup warning message
From: Borislav Petkov <[email protected]>
Use gcc's __func__ instead of the function name.
Signed-off-by Borislav Petkov <[email protected]>
---
Patch against next-20110201.
drivers/base/sys.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/base/sys.c +2 -2
@@ -211,8 +211,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 ; }
Signature · 1 line
1.7.4.rc2