diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-08-30 19:55:36 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-08-30 19:55:36 +0000 |
commit | 649734f5fccce36f424ada23b865cae04aa16567 (patch) | |
tree | 9f4af7e9f6f7c190b5ad049ff9921c4fb1a611a7 | |
parent | 4f8818241b9035a7413f6d0797f8c824e5ebca0d (diff) |
remove some debug..
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14543 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/usb/arcotg_dcd.c | 6 | ||||
-rw-r--r-- | firmware/usbstack/core/config.c | 3 | ||||
-rw-r--r-- | firmware/usbstack/core/epsetup.c | 2 |
3 files changed, 1 insertions, 10 deletions
diff --git a/firmware/drivers/usb/arcotg_dcd.c b/firmware/drivers/usb/arcotg_dcd.c index 9ffc6aa74a..8555a923c3 100644 --- a/firmware/drivers/usb/arcotg_dcd.c +++ b/firmware/drivers/usb/arcotg_dcd.c @@ -385,7 +385,6 @@ static void setup_received_int(struct usb_ctrlrequest* request) static void port_change_int(void) { - //logf("port_change_int"); uint32_t tmp; enum usb_device_speed speed = USB_SPEED_UNKNOWN; @@ -430,7 +429,6 @@ static void port_change_int(void) static void suspend_int(void) { - //logf("suspend_int"); dcd_controller.resume_state = dcd_controller.usb_state; dcd_controller.usb_state = USB_STATE_SUSPENDED; @@ -443,7 +441,6 @@ static void suspend_int(void) static void resume_int(void) { - //logf("resume_int"); dcd_controller.usb_state = dcd_controller.resume_state; dcd_controller.resume_state = USB_STATE_NOTATTACHED; @@ -745,9 +742,6 @@ int usb_arcotg_dcd_send(struct usb_ep* ep, struct usb_response* res) index = ep->pipe_num; } - logf("buff: %x", res->buf); - logf("len: %d", res->length); - ptr = res->buf; size = res->length; diff --git a/firmware/usbstack/core/config.c b/firmware/usbstack/core/config.c index 4538b8dff9..c49d54702c 100644 --- a/firmware/usbstack/core/config.c +++ b/firmware/usbstack/core/config.c @@ -35,10 +35,9 @@ static int usb_descriptor_fillbuf(void* buf, unsigned buflen, struct usb_descrip for (; 0 != *src; src++) { unsigned len = (*src)->bLength; - logf("len: %d", len); - if (len > buflen) return -EINVAL; + memcpy(dest, *src, len); buflen -= len; dest += len; diff --git a/firmware/usbstack/core/epsetup.c b/firmware/usbstack/core/epsetup.c index 8581544e0f..969678e18f 100644 --- a/firmware/usbstack/core/epsetup.c +++ b/firmware/usbstack/core/epsetup.c @@ -166,9 +166,7 @@ static int ep_matches(struct usb_ep* ep, struct usb_endpoint_descriptor* desc) /* MATCH!! */ /* set address of used ep in desc */ - logf("ep address %x", desc->bEndpointAddress); desc->bEndpointAddress |= ep->ep_num; - ep->desc = desc; return 1; |