From b791799d9a9936ab43143e5335f5200fa56db768 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 26 Oct 2015 19:48:25 +0100 Subject: libpayload: Fix building dwc2 UDC driver with debug enabled hexdump() now takes a pointer instead of an int-containing-an-address. BUG=none BRANCH=none TEST=building with USB_DEBUG works Change-Id: Idd0c43031a212c8f3b6489f533c488805d98d6a9 Signed-off-by: Patrick Georgi Original-Commit-Id: 8660f6091bb124eeabe73302e8c7f1a8e46324f1 Original-Change-Id: I266efcb8b939d6da104ad05a3e79a78065c60beb Original-Signed-off-by: Patrick Georgi Original-Reviewed-on: https://chromium-review.googlesource.com/308762 Original-Commit-Ready: Patrick Georgi Original-Tested-by: Patrick Georgi Original-Reviewed-by: Furquan Shaikh Original-Reviewed-by: yunzhi li Reviewed-on: http://review.coreboot.org/12258 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- payloads/libpayload/drivers/udc/dwc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/libpayload/drivers/udc/dwc2.c b/payloads/libpayload/drivers/udc/dwc2.c index b38a0de2f6..03691e79c6 100644 --- a/payloads/libpayload/drivers/udc/dwc2.c +++ b/payloads/libpayload/drivers/udc/dwc2.c @@ -563,7 +563,7 @@ static void dwc2_outep_intr(struct usbdev_ctrl *this, dwc2_ep_t *ep) usb_debug("DEPINT_SETUP\n"); writel(DXEPINT_SETUP, &ep->ep_regs->depint); #ifdef USB_DEBUG - hexdump((unsigned int)p->setup_buf, sizeof(dev_req_t)); + hexdump(p->setup_buf, sizeof(dev_req_t)); #endif SIMPLEQ_REMOVE_HEAD(&p->eps[0][0].job_queue, queue); p->eps[0][0].busy = 0; -- cgit v1.2.3