mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
sysdev: Fixup warning message
Use gcc's __func__ instead of the function name. Signed-off-by: Borislav Petkov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
072fc8f0a8
commit
345279bc10
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue