Skip to contentSkip to conversation

drivers/base/core.c: output device renaming messages with dev_dbg().

PATCH New ethan.zhao 1 participant 1 message Oct 13, 2013 Driver core

lore
Share & tools
lore

ethan.zhao

author
#0 lore raw

PATCH 1/1 drivers/base/core.c: output device renaming messages with dev_dbg().

From: "ethan.zhao" <[email protected]>

Replace pr_debug() with dev_dbg().

---
 drivers/base/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/base/core.c +1 -2
index 2d1c6ba..8c4d3dc 100644
@@ -1904,8 +1904,7 @@ int device_rename(struct device *dev, const char *new_name)
 	if (!dev)
 		return -EINVAL;
 
-	pr_debug("device: '%s': %s: renaming to '%s'\n", dev_name(dev),
-		 __func__, new_name);
+	dev_dbg(dev, "renaming to %s\n", new_name);
 
 	old_device_name = kstrdup(dev_name(dev), GFP_KERNEL);
 	if (!old_device_name) {
Signature · 1 line
1.7.12.4 (Apple Git-37)