Resending patch as attatchment as my lines got wrapped. http://www.reactivated.net/patches/linux-kernel/2.6.0-test5/usblp-fix-debug-output.patch
When compiling usblp 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 also enhanced the debug output a little, as suggested by Randy Dunlap.
Thanks
-- Daniel Drake (dsd) http://www.reactivated.net
--- linux-2.6.0-test5/drivers/usb/class/usblp.c 2003-09-16 14:05:20.000000000 +0100 +++ linux/drivers/usb/class/usblp.c 2003-09-16 21:48:01.543089808 +0100 @@ -159,7 +159,10 @@ dbg("usblp=0x%p", usblp); dbg("dev=0x%p", usblp->dev); dbg("present=%d", usblp->present); - dbg("buf=0x%p", usblp->buf); + dbg("readbuf=0x%p", usblp->readbuf); + dbg("writebuf=0x%p", usblp->writebuf); + dbg("readurb=0x%p", usblp->readurb); + dbg("writeurb=0x%p", usblp->writeurb); dbg("readcount=%d", usblp->readcount); dbg("ifnum=%d", usblp->ifnum); for (p = USBLP_FIRST_PROTOCOL; p <= USBLP_LAST_PROTOCOL; p++) {