aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/dd.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-11-29 02:49:41 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:35 -0500
commit7dc72b2842381684b864750af31a5fb168dec764 (patch)
tree16746ac3f9836049705e1613480debb288c0068d /drivers/base/dd.c
parente5dd12784617f0f1fae5f96a7fac1ec4c49fadbe (diff)
Driver core: clean up debugging messages
The driver core debugging messages are a mess. This provides a unified message that makes them actually useful. The format for new kobject debug messages should be: driver/bus/class: 'OBJECT_NAME': FUNCTION_NAME: message.\n Note, the class code is not changed in this patch due to pending patches in my queue that this would conflict with. A later patch will clean them up. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r--drivers/base/dd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 87a348ce818c..54922647522d 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -34,8 +34,8 @@ static void driver_bound(struct device *dev)
34 return; 34 return;
35 } 35 }
36 36
37 pr_debug("bound device '%s' to driver '%s'\n", 37 pr_debug("driver: '%s': %s: bound to device '%s'\n", dev->bus_id,
38 dev->bus_id, dev->driver->name); 38 __FUNCTION__, dev->driver->name);
39 39
40 if (dev->bus) 40 if (dev->bus)
41 blocking_notifier_call_chain(&dev->bus->p->bus_notifier, 41 blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
@@ -102,8 +102,8 @@ static int really_probe(struct device *dev, struct device_driver *drv)
102 int ret = 0; 102 int ret = 0;
103 103
104 atomic_inc(&probe_count); 104 atomic_inc(&probe_count);
105 pr_debug("%s: Probing driver %s with device %s\n", 105 pr_debug("bus: '%s': %s: probing driver %s with device %s\n",
106 drv->bus->name, drv->name, dev->bus_id); 106 drv->bus->name, __FUNCTION__, drv->name, dev->bus_id);
107 WARN_ON(!list_empty(&dev->devres_head)); 107 WARN_ON(!list_empty(&dev->devres_head));
108 108
109 dev->driver = drv; 109 dev->driver = drv;
@@ -125,8 +125,8 @@ static int really_probe(struct device *dev, struct device_driver *drv)
125 125
126 driver_bound(dev); 126 driver_bound(dev);
127 ret = 1; 127 ret = 1;
128 pr_debug("%s: Bound Device %s to Driver %s\n", 128 pr_debug("bus: '%s': %s: bound device %s to driver %s\n",
129 drv->bus->name, dev->bus_id, drv->name); 129 drv->bus->name, __FUNCTION__, dev->bus_id, drv->name);
130 goto done; 130 goto done;
131 131
132probe_failed: 132probe_failed:
@@ -192,8 +192,8 @@ int driver_probe_device(struct device_driver * drv, struct device * dev)
192 if (drv->bus->match && !drv->bus->match(dev, drv)) 192 if (drv->bus->match && !drv->bus->match(dev, drv))
193 goto done; 193 goto done;
194 194
195 pr_debug("%s: Matched Device %s with Driver %s\n", 195 pr_debug("bus: '%s': %s: matched device %s with driver %s\n",
196 drv->bus->name, dev->bus_id, drv->name); 196 drv->bus->name, __FUNCTION__, dev->bus_id, drv->name);
197 197
198 ret = really_probe(dev, drv); 198 ret = really_probe(dev, drv);
199 199