mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 12:46:40 +07:00
sysdev: Fixup warning message
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>
This commit is contained in:
parent
072fc8f0a8
commit
345279bc10
@ -181,8 +181,8 @@ int sysdev_driver_register(struct sysdev_class *cls, struct sysdev_driver *drv)
|
|||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
if (!cls) {
|
if (!cls) {
|
||||||
WARN(1, KERN_WARNING "sysdev: invalid class passed to "
|
WARN(1, KERN_WARNING "sysdev: invalid class passed to %s!\n",
|
||||||
"sysdev_driver_register!\n");
|
__func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user