]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla4xxx: Fix gcc warning for x86 system
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Tue, 7 Aug 2012 11:57:14 +0000 (07:57 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 16:59:20 +0000 (17:59 +0100)
Fix warning:-
drivers/scsi/qla4xxx/ql4_nx.c:1867:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint32_t’ [-Wformat]

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>
drivers/scsi/qla4xxx/ql4_nx.c

index 939d7261c37a8faf664683d43badf2584796acc4..f2e961d9f2f8e29b362e27ff0dc6448809399ca2 100644 (file)
@@ -1865,7 +1865,7 @@ static void qla4_8xxx_minidump_process_rdocm(struct scsi_qla_host *ha,
                r_addr += r_stride;
        }
        DEBUG2(ql4_printk(KERN_INFO, ha, "Leaving fn: %s datacount: 0x%lx\n",
-                         __func__, (loop_cnt * sizeof(uint32_t))));
+               __func__, (long unsigned int) (loop_cnt * sizeof(uint32_t))));
        *d_ptr = data_ptr;
 }