Messages in this thread Patch in this message | | | From | Borislav Petkov <> | Subject | [PATCH 2/2] sysdev: Fixup warning message | Date | Tue, 1 Feb 2011 17:19:57 +0100 |
| |
From: Borislav Petkov <borislav.petkov@amd.com>
Use gcc's __func__ instead of the function name.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> ---
Patch against next-20110201.
drivers/base/sys.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/base/sys.c b/drivers/base/sys.c index a1eeff0..f6fb547 100644 --- a/drivers/base/sys.c +++ b/drivers/base/sys.c @@ -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; } -- 1.7.4.rc2
| |