aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp.h
diff options
context:
space:
mode:
authorrajesh.shah@intel.com <rajesh.shah@intel.com>2005-10-31 19:20:10 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2005-11-10 19:09:15 -0500
commit1a9ed1bfe2fb17cc30227a12a3c1212128bb78b6 (patch)
tree17972b04d16dca0bfb66771165928a4db50fb00b /drivers/pci/hotplug/pciehp.h
parented6cbcf2ac706aa47194fd2f7a99865cc06833d7 (diff)
[PATCH] pciehp: reduce debug message verbosity
Reduce the number of debug messages generated if pciehp debug is enabled. I tried to restrict this to removing debug messages that are either early-driver-debug type messages, or print information that can be inferred through other debug prints. Signed-off-by: Rajesh Shah <rajesh.shah@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r--drivers/pci/hotplug/pciehp.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index 314989a3a933..e1c2cea305f8 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -207,12 +207,9 @@ static inline struct slot *pciehp_find_slot(struct controller *ctrl, u8 device)
207 207
208 p_slot = ctrl->slot; 208 p_slot = ctrl->slot;
209 209
210 dbg("p_slot = %p\n", p_slot);
211
212 while (p_slot && (p_slot->device != device)) { 210 while (p_slot && (p_slot->device != device)) {
213 tmp_slot = p_slot; 211 tmp_slot = p_slot;
214 p_slot = p_slot->next; 212 p_slot = p_slot->next;
215 dbg("In while loop, p_slot = %p\n", p_slot);
216 } 213 }
217 if (p_slot == NULL) { 214 if (p_slot == NULL) {
218 err("ERROR: pciehp_find_slot device=0x%x\n", device); 215 err("ERROR: pciehp_find_slot device=0x%x\n", device);
@@ -228,7 +225,6 @@ static inline int wait_for_ctrl_irq(struct controller *ctrl)
228 225
229 DECLARE_WAITQUEUE(wait, current); 226 DECLARE_WAITQUEUE(wait, current);
230 227
231 dbg("%s : start\n", __FUNCTION__);
232 add_wait_queue(&ctrl->queue, &wait); 228 add_wait_queue(&ctrl->queue, &wait);
233 if (!pciehp_poll_mode) 229 if (!pciehp_poll_mode)
234 /* Sleep for up to 1 second */ 230 /* Sleep for up to 1 second */
@@ -240,7 +236,6 @@ static inline int wait_for_ctrl_irq(struct controller *ctrl)
240 if (signal_pending(current)) 236 if (signal_pending(current))
241 retval = -EINTR; 237 retval = -EINTR;
242 238
243 dbg("%s : end\n", __FUNCTION__);
244 return retval; 239 return retval;
245} 240}
246 241