Skip to content

Commit

Permalink
[SCSI] qla4xxx: Fix qla4xxx_dump_buffer to dump buffer correctly
Browse files Browse the repository at this point in the history
KERN_INFO in printk adding new line character that mess-up
dump print format. Remove KERN_INFO to fix dump format.

Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Vikas Chaudhary authored and James Bottomley committed Dec 15, 2011
1 parent e3f37d1 commit 0a24361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/scsi/qla4xxx/ql4_dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ void qla4xxx_dump_buffer(void *b, uint32_t size)
printk("------------------------------------------------------------"
"--\n");
for (cnt = 0; cnt < size; c++) {
printk(KERN_INFO "%02x", *c);
printk("%02x", *c);
if (!(++cnt % 16))
printk(KERN_INFO "\n");
printk("\n");

else
printk(KERN_INFO " ");
printk(" ");
}
printk(KERN_INFO "\n");
}
Expand Down

0 comments on commit 0a24361

Please sign in to comment.