Resending patch as attatchment as my lines got wrapped. http://www.reactivated.net/patches/linux-kernel/2.6.0-test5/dabusb-fix-debug-output.patch
When compiling dabusb with debug info, a compile error occurs. I presume this is because this part of the code has not been updated since the 2.4 kernels. This patch fixes this. I had to comment out one line of debug code that I was unable to fix.
Thanks. -- Daniel Drake (dsd) http://www.reactivated.net
--- linux-2.6.0-test5/drivers/usb/media/dabusb.c 2003-09-09 08:50:01.000000000 +0100 +++ linux/drivers/usb/media/dabusb.c 2003-09-16 21:49:03.284703656 +0100 @@ -89,7 +89,9 @@ static void dump_urb (struct urb *urb) { dbg("urb :%p", urb); - dbg("next :%p", urb->next); + /* causes compile error: + dbg("next :%p", urb->next); + -- [EMAIL PROTECTED] */ dbg("dev :%p", urb->dev); dbg("pipe :%08X", urb->pipe); dbg("status :%d", urb->status); @@ -728,7 +730,7 @@ pdabusb_t s; dbg("dabusb: probe: vendor id 0x%x, device id 0x%x ifnum:%d", - usbdev->descriptor.idVendor, usbdev->descriptor.idProduct, ifnum); + usbdev->descriptor.idVendor, usbdev->descriptor.idProduct, intf->altsetting->desc.bInterfaceNumber); /* We don't handle multiple configurations */ if (usbdev->descriptor.bNumConfigurations != 1) @@ -762,7 +764,7 @@ goto reject; } } - dbg("bound to interface: %d", ifnum); + dbg("bound to interface: %d", intf->altsetting->desc.bInterfaceNumber); usb_set_intfdata (intf, s); up (&s->mutex);