Index: /trunk/src/target/u-boot/patches/uboot-s3c2410_udc.patch
===================================================================
--- /trunk/src/target/u-boot/patches/uboot-s3c2410_udc.patch	(revision 2873)
+++ /trunk/src/target/u-boot/patches/uboot-s3c2410_udc.patch	(revision 2874)
@@ -18,5 +18,5 @@
 --- /dev/null
 +++ u-boot/drivers/usbdcore_s3c2410.c
-@@ -0,0 +1,730 @@
+@@ -0,0 +1,751 @@
 +/* S3C2410 USB Device Controller Driver for u-boot
 + *
@@ -67,4 +67,25 @@
 +#include "usbdcore_ep0.h"
 +#include <usb_cdc_acm.h>
++
++static void debug_urb_buffer(char *prefix, struct usb_endpoint_instance *ep)
++{
++#ifdef DEBUG
++	int num;
++	static char buf[128];
++
++	if (!ep->tx_urb) {
++		serial_printf("no tx_urb\n");
++		return;
++	}
++
++	num = MIN(ep->tx_urb->actual_length - ep->sent, ep->tx_packetSize);
++
++	memset(buf, 0, sizeof(buf));
++	strncpy(buf, ep->tx_urb->buffer + ep->sent, num);
++
++	serial_printf("%s(%d:%s)\n", prefix, num, buf);
++#endif
++}
++
 +
 +enum ep0_state {
@@ -391,5 +412,5 @@
 +			} else {
 +				/* write actual data to fifo */
-+				debug("TX_DATA ");
++				debug_urb_buffer("TX_DATA", endpoint);
 +				s3c2410_write_noniso_tx_fifo(endpoint);
 +				outl(ep_csr1|S3C2410_UDC_ICSR1_PKTRDY, S3C2410_UDC_IN_CSR1_REG);
@@ -524,5 +545,5 @@
 +	if (endpoint->tx_urb) {
 +		u32 ep_csr1;
-+		debug("We have an URB, transmitting\n");
++		debug_urb_buffer("We have an URB, transmitting", endpoint);
 +
 +		s3c2410_write_noniso_tx_fifo(endpoint);
