[SCSI] lpfc : correct printk types on PPC compiles
authorJames Smart <James.Smart@Emulex.Com>
Tue, 16 Dec 2008 15:34:09 +0000 (10:34 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:34 +0000 (11:24 -0600)
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/lpfc/lpfc_scsi.c

index 9ec0460..40cf0f4 100644 (file)
@@ -123,7 +123,8 @@ lpfc_bg_guard_err_show(struct device *dev, struct device_attribute *attr,
        struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
        struct lpfc_hba   *phba = vport->phba;
 
-       return snprintf(buf, PAGE_SIZE, "%llu\n", phba->bg_guard_err_cnt);
+       return snprintf(buf, PAGE_SIZE, "%llu\n",
+                       (unsigned long long)phba->bg_guard_err_cnt);
 }
 
 static ssize_t
@@ -134,7 +135,8 @@ lpfc_bg_apptag_err_show(struct device *dev, struct device_attribute *attr,
        struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
        struct lpfc_hba   *phba = vport->phba;
 
-       return snprintf(buf, PAGE_SIZE, "%llu\n", phba->bg_apptag_err_cnt);
+       return snprintf(buf, PAGE_SIZE, "%llu\n",
+                       (unsigned long long)phba->bg_apptag_err_cnt);
 }
 
 static ssize_t
@@ -145,7 +147,8 @@ lpfc_bg_reftag_err_show(struct device *dev, struct device_attribute *attr,
        struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
        struct lpfc_hba   *phba = vport->phba;
 
-       return snprintf(buf, PAGE_SIZE, "%llu\n", phba->bg_reftag_err_cnt);
+       return snprintf(buf, PAGE_SIZE, "%llu\n",
+                       (unsigned long long)phba->bg_reftag_err_cnt);
 }
 
 /**
index 83a8e7e..b103b6e 100644 (file)
@@ -1315,7 +1315,7 @@ lpfc_parse_bg_err(struct lpfc_hba *phba, struct lpfc_scsi_buf *lpfc_cmd,
 
        printk(KERN_ERR "BG ERROR in cmd 0x%x lba 0x%llx blk cnt 0x%lx "
                        "bgstat=0x%x bghm=0x%x\n",
-                       cmd->cmnd[0], (u64)scsi_get_lba(cmd),
+                       cmd->cmnd[0], (unsigned long long)scsi_get_lba(cmd),
                        cmd->request->nr_sectors, bgstat, bghm);
 
        spin_lock(&_dump_buf_lock);
@@ -2376,13 +2376,13 @@ lpfc_queuecommand(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *))
                        lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
                                        "9035 BLKGRD: READ @ sector %llu, "
                                         "count %lu\n",
-                                        (u64)scsi_get_lba(cmnd),
+                                        (unsigned long long)scsi_get_lba(cmnd),
                                        cmnd->request->nr_sectors);
                else if (cmnd->cmnd[0] == WRITE_10)
                        lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
                                        "9036 BLKGRD: WRITE @ sector %llu, "
                                        "count %lu cmd=%p\n",
-                                       (u64)scsi_get_lba(cmnd),
+                                       (unsigned long long)scsi_get_lba(cmnd),
                                        cmnd->request->nr_sectors,
                                        cmnd);
 
@@ -2403,13 +2403,14 @@ lpfc_queuecommand(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *))
                if (cmnd->cmnd[0] == READ_10)
                        lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
                                         "9040 dbg: READ @ sector %llu, "
-                                        "count %lu\n", (u64)scsi_get_lba(cmnd),
+                                        "count %lu\n",
+                                        (unsigned long long)scsi_get_lba(cmnd),
                                         cmnd->request->nr_sectors);
                else if (cmnd->cmnd[0] == WRITE_10)
                        lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,
                                         "9041 dbg: WRITE @ sector %llu, "
                                         "count %lu cmd=%p\n",
-                                        (u64)scsi_get_lba(cmnd),
+                                        (unsigned long long)scsi_get_lba(cmnd),
                                         cmnd->request->nr_sectors, cmnd);
                else
                        lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG,