Browse Source

[SCSI] qla4xxx: Fix qla4xxx_dump_buffer to dump buffer correctly

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>
Vikas Chaudhary 13 years ago
parent
commit
0a24361566
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drivers/scsi/qla4xxx/ql4_dbg.c

+ 3 - 3
drivers/scsi/qla4xxx/ql4_dbg.c

@@ -20,12 +20,12 @@ void qla4xxx_dump_buffer(void *b, uint32_t size)
 	printk("------------------------------------------------------------"
 	printk("------------------------------------------------------------"
 	       "--\n");
 	       "--\n");
 	for (cnt = 0; cnt < size; c++) {
 	for (cnt = 0; cnt < size; c++) {
-		printk(KERN_INFO "%02x", *c);
+		printk("%02x", *c);
 		if (!(++cnt % 16))
 		if (!(++cnt % 16))
-			printk(KERN_INFO "\n");
+			printk("\n");
 
 
 		else
 		else
-			printk(KERN_INFO "  ");
+			printk("  ");
 	}
 	}
 	printk(KERN_INFO "\n");
 	printk(KERN_INFO "\n");
 }
 }