]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla2xxx: Correct buffer start in edc sysfs debug print.
authorJoe Carnuccio <joe.carnuccio@qlogic.com>
Tue, 10 May 2011 18:30:07 +0000 (11:30 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 17 May 2011 07:31:31 +0000 (11:31 +0400)
The debug print prints the first byte of the buffer which is buf[8].

Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_attr.c

index 260c0300b3e7acf28289c76d9572cbb9b9c14338..4e51124899fdda2bb834388bbff86889ed3ed849 100644 (file)
@@ -633,7 +633,7 @@ qla2x00_sysfs_write_edc(struct file *filp, struct kobject *kobj,
        if (rval != QLA_SUCCESS) {
                DEBUG2(qla_printk(KERN_INFO, ha,
                    "Unable to write EDC (%x) %02x:%02x:%04x:%02x:%02x.\n",
-                   rval, dev, adr, opt, len, *buf));
+                   rval, dev, adr, opt, len, buf[8]));
                return 0;
        }