提交 345279bc 编写于 作者: B Borislav Petkov 提交者: Greg Kroah-Hartman

sysdev: Fixup warning message

Use gcc's __func__ instead of the function name.
Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 072fc8f0
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册