Skip to contentSkip to conversation

sysdev: Fixup warning message

PATCH In review Borislav Petkov 1 participant 1 message Feb 1, 2011 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 sysdev: Fixup warning message

From: Borislav Petkov <[email protected]>

Use gcc's __func__ instead of the function name.

---

Patch against next-20110201.

 drivers/base/sys.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/base/sys.c +2 -2
index a1eeff0..f6fb547 100644
@@ -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;
 	}
 
Signature · 1 line
1.7.4.rc2