libpayload: Put dump_td/dump_ed in ohci.c behind #ifdef USB_DEBUG

This function is static and not used in that file. To avoid the compiler
complaining about that fact, put the two functions and the call to dump_ed
(currently #if 0) behind #ifdef USB_DEBUG

Change-Id: Ic373313b5fff81f09800f286b32238350ab699c6
Signed-off-by: Gabe Black <gabeblack@google.com>
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2716
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Gabe Black 2013-01-16 03:18:45 -08:00 committed by Ronald G. Minnich
parent 6d04f0f89e
commit 6a0b3611c5
1 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,7 @@ static void ohci_destroy_intr_queue (endpoint_t *ep, void *queue);
static u8* ohci_poll_intr_queue (void *queue); static u8* ohci_poll_intr_queue (void *queue);
static void ohci_process_done_queue(ohci_t *ohci, int spew_debug); static void ohci_process_done_queue(ohci_t *ohci, int spew_debug);
#ifdef USB_DEBUG
static void static void
dump_td (td_t *cur) dump_td (td_t *cur)
{ {
@ -116,6 +117,7 @@ dump_ed (ed_t *cur)
usb_debug("+---------------------------------------------------+\n"); usb_debug("+---------------------------------------------------+\n");
} }
} }
#endif
static void static void
ohci_reset (hci_t *controller) ohci_reset (hci_t *controller)
@ -429,7 +431,7 @@ ohci_control (usbdev_t *dev, direction_t dir, int drlen, void *devreq, int dalen
usb_debug("ohci_control(): doing transfer with %x. first_td at %x\n", usb_debug("ohci_control(): doing transfer with %x. first_td at %x\n",
head->config & ED_FUNC_MASK, virt_to_phys(first_td)); head->config & ED_FUNC_MASK, virt_to_phys(first_td));
#if 0 #ifdef USB_DEBUG
dump_ed(head); dump_ed(head);
#endif #endif