Commit e2116ca9 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

patch from Peter Osterlund <petero2@telia.com> to fix usb-storage debug code

compile problem.
parent 14d39718
...@@ -186,25 +186,27 @@ void usb_stor_print_Scsi_Cmnd( Scsi_Cmnd* cmd ) ...@@ -186,25 +186,27 @@ void usb_stor_print_Scsi_Cmnd( Scsi_Cmnd* cmd )
US_DEBUGP("Buffer has %d scatterlists.\n", cmd->use_sg ); US_DEBUGP("Buffer has %d scatterlists.\n", cmd->use_sg );
for ( i=0; i<cmd->use_sg; i++ ) for ( i=0; i<cmd->use_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("Length of scatterlist %d is %d.\n",i,sg[i].length);
US_DEBUGP("%02x %02x %02x %02x %02x %02x %02x %02x\n" US_DEBUGP("%02x %02x %02x %02x %02x %02x %02x %02x\n"
"%02x %02x %02x %02x %02x %02x %02x %02x\n", "%02x %02x %02x %02x %02x %02x %02x %02x\n",
sg[i].address[0], adr[0],
sg[i].address[1], adr[1],
sg[i].address[2], adr[2],
sg[i].address[3], adr[3],
sg[i].address[4], adr[4],
sg[i].address[5], adr[5],
sg[i].address[6], adr[6],
sg[i].address[7], adr[7],
sg[i].address[8], adr[8],
sg[i].address[9], adr[9],
sg[i].address[10], adr[10],
sg[i].address[11], adr[11],
sg[i].address[12], adr[12],
sg[i].address[13], adr[13],
sg[i].address[14], adr[14],
sg[i].address[15]); adr[15]);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment