Skip to content

Commit

Permalink
sysdev: Fixup warning message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov authored and Greg Kroah-Hartman committed Feb 3, 2011
1 parent 072fc8f commit 345279b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/base/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 345279b

Please sign in to comment.