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.

Here is a patch to fix this, also available at http://www.reactivated.net/patches/linux-kernel/2.6.0-test5/dabusb-debug-output-fix.patch

Feedback is appreciated, because I am new to kernel development :)

--

--- 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 18:48:11.106485512 +0100
@@ -728,7 +728,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 +762,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);



--
Daniel Drake (dsd)
http://www.reactivated.net




------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to