[PATCH] pciehp: reduce debug message verbosity
[linux-2.6.git] / drivers / pci / hotplug / pciehp_ctrl.c
index dcfbfff..5e582ec 100644 (file)
@@ -277,7 +277,9 @@ static int board_added(struct slot *p_slot)
 
        hp_slot = p_slot->device - ctrl->slot_device_offset;
 
-       dbg("%s: p_slot->device, slot_offset, hp_slot = %d, %d ,%d\n", __FUNCTION__, p_slot->device, ctrl->slot_device_offset, hp_slot);
+       dbg("%s: slot device, slot offset, hp slot = %d, %d ,%d\n",
+                       __FUNCTION__, p_slot->device,
+                       ctrl->slot_device_offset, hp_slot);
 
        /* Wait for exclusive access to hardware */
        down(&ctrl->crit_sect);
@@ -305,9 +307,7 @@ static int board_added(struct slot *p_slot)
        up(&ctrl->crit_sect);
 
        /* Wait for ~1 second */
-       dbg("%s: before long_delay\n", __FUNCTION__);
        wait_for_ctrl_irq (ctrl);
-       dbg("%s: afterlong_delay\n", __FUNCTION__);
 
        /*  Check link training status */
        rc = p_slot->hpc_ops->check_lnk_status(ctrl);  
@@ -444,13 +444,15 @@ static void pciehp_pushbutton_thread(unsigned long slot)
        p_slot->hpc_ops->get_power_status(p_slot, &getstatus);
        if (getstatus) {
                p_slot->state = POWEROFF_STATE;
-               dbg("In power_down_board, b:d(%x:%x)\n", p_slot->bus, p_slot->device);
+               dbg("%s: disabling bus:device(%x:%x)\n", __FUNCTION__,
+                               p_slot->bus, p_slot->device);
 
                pciehp_disable_slot(p_slot);
                p_slot->state = STATIC_STATE;
        } else {
                p_slot->state = POWERON_STATE;
-               dbg("In add_board, b:d(%x:%x)\n", p_slot->bus, p_slot->device);
+               dbg("%s: adding bus:device(%x:%x)\n", __FUNCTION__,
+                               p_slot->bus, p_slot->device);
 
                if (pciehp_enable_slot(p_slot) && PWR_LED(p_slot->ctrl->ctrlcap)) {
                        /* Wait for exclusive access to hardware */
@@ -492,13 +494,15 @@ static void pciehp_surprise_rm_thread(unsigned long slot)
        p_slot->hpc_ops->get_adapter_status(p_slot, &getstatus);
        if (!getstatus) {
                p_slot->state = POWEROFF_STATE;
-               dbg("In removing board, b:d(%x:%x)\n", p_slot->bus, p_slot->device);
+               dbg("%s: removing bus:device(%x:%x)\n",
+                               __FUNCTION__, p_slot->bus, p_slot->device);
 
                pciehp_disable_slot(p_slot);
                p_slot->state = STATIC_STATE;
        } else {
                p_slot->state = POWERON_STATE;
-               dbg("In add_board, b:d(%x:%x)\n", p_slot->bus, p_slot->device);
+               dbg("%s: adding bus:device(%x:%x)\n",
+                               __FUNCTION__, p_slot->bus, p_slot->device);
 
                if (pciehp_enable_slot(p_slot) && PWR_LED(p_slot->ctrl->ctrlcap)) {
                        /* Wait for exclusive access to hardware */
@@ -564,7 +568,6 @@ int pciehp_event_start_thread(void)
                err ("Can't start up our event thread\n");
                return -1;
        }
-       dbg("Our event thread pid = %d\n", pid);
        return 0;
 }
 
@@ -572,9 +575,7 @@ int pciehp_event_start_thread(void)
 void pciehp_event_stop_thread(void)
 {
        event_finished = 1;
-       dbg("event_thread finish command given\n");
        up(&event_semaphore);
-       dbg("wait for event_thread to exit\n");
        down(&event_exit);
 }
 
@@ -619,8 +620,6 @@ static void interrupt_event_handler(struct controller *ctrl)
 
                                p_slot = pciehp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);
 
-                               dbg("hp_slot %d, p_slot %p\n", hp_slot, p_slot);
-
                                if (ctrl->event_queue[loop].event_type == INT_BUTTON_CANCEL) {
                                        dbg("button cancel\n");
                                        del_timer(&p_slot->task_event);
@@ -712,7 +711,6 @@ static void interrupt_event_handler(struct controller *ctrl)
                                                p_slot->task_event.function = (void (*)(unsigned long)) pushbutton_helper_thread;
                                                p_slot->task_event.data = (unsigned long) p_slot;
 
-                                               dbg("add_timer p_slot = %p\n", (void *) p_slot);
                                                add_timer(&p_slot->task_event);
                                        }
                                }