# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.273 -> 1.274 # drivers/usb/storage/debug.c 1.3 -> 1.4 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/02/11 greg@soap.kroah.net 1.274 # patch from Peter Osterlund to fix usb-storage debug code # compile problem. # -------------------------------------------- # diff -Nru a/drivers/usb/storage/debug.c b/drivers/usb/storage/debug.c --- a/drivers/usb/storage/debug.c Mon Feb 11 14:02:58 2002 +++ b/drivers/usb/storage/debug.c Mon Feb 11 14:02:58 2002 @@ -186,25 +186,27 @@ US_DEBUGP("Buffer has %d scatterlists.\n", cmd->use_sg ); for ( i=0; iuse_sg; i++ ) { + char *adr = page_address(sg[i].page) + sg[i].offset; + US_DEBUGP("Length of scatterlist %d is %d.\n",i,sg[i].length); US_DEBUGP("%02x %02x %02x %02x %02x %02x %02x %02x\n" "%02x %02x %02x %02x %02x %02x %02x %02x\n", - sg[i].address[0], - sg[i].address[1], - sg[i].address[2], - sg[i].address[3], - sg[i].address[4], - sg[i].address[5], - sg[i].address[6], - sg[i].address[7], - sg[i].address[8], - sg[i].address[9], - sg[i].address[10], - sg[i].address[11], - sg[i].address[12], - sg[i].address[13], - sg[i].address[14], - sg[i].address[15]); + adr[0], + adr[1], + adr[2], + adr[3], + adr[4], + adr[5], + adr[6], + adr[7], + adr[8], + adr[9], + adr[10], + adr[11], + adr[12], + adr[13], + adr[14], + adr[15]); } }