diff options
author | James Smart <James.Smart@Emulex.Com> | 2008-12-16 10:34:09 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 12:24:34 -0500 |
commit | 87b5c328c7e32ab9075086f990001bffb7b19550 (patch) | |
tree | ef64e2ec14880dd17b41f1d1d79f36f7aa81be57 /drivers/scsi | |
parent | 302378534c8d4403f9a9b2a20f875b6866a27e42 (diff) |
[SCSI] lpfc : correct printk types on PPC compiles
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 9 | ||||
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 11 |
2 files changed, 12 insertions, 8 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 9ec046001300..40cf0f4f327f 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -123,7 +123,8 @@ lpfc_bg_guard_err_show(struct device *dev, struct device_attribute *attr, | |||
123 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; | 123 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; |
124 | struct lpfc_hba *phba = vport->phba; | 124 | struct lpfc_hba *phba = vport->phba; |
125 | 125 | ||
126 | return snprintf(buf, PAGE_SIZE, "%llu\n", phba->bg_guard_err_cnt); | 126 | return snprintf(buf, PAGE_SIZE, "%llu\n", |
127 | (unsigned long long)phba->bg_guard_err_cnt); | ||
127 | } | 128 | } |
128 | 129 | ||
129 | static ssize_t | 130 | static ssize_t |
@@ -134,7 +135,8 @@ lpfc_bg_apptag_err_show(struct device *dev, struct device_attribute *attr, | |||
134 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; | 135 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; |
135 | struct lpfc_hba *phba = vport->phba; | 136 | struct lpfc_hba *phba = vport->phba; |
136 | 137 | ||
137 | return snprintf(buf, PAGE_SIZE, "%llu\n", phba->bg_apptag_err_cnt); | 138 | return snprintf(buf, PAGE_SIZE, "%llu\n", |
139 | (unsigned long long)phba->bg_apptag_err_cnt); | ||
138 | } | 140 | } |
139 | 141 | ||
140 | static ssize_t | 142 | static ssize_t |
@@ -145,7 +147,8 @@ lpfc_bg_reftag_err_show(struct device *dev, struct device_attribute *attr, | |||
145 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; | 147 | struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; |
146 | struct lpfc_hba *phba = vport->phba; | 148 | struct lpfc_hba *phba = vport->phba; |
147 | 149 | ||
148 | return snprintf(buf, PAGE_SIZE, "%llu\n", phba->bg_reftag_err_cnt); | 150 | return snprintf(buf, PAGE_SIZE, "%llu\n", |
151 | (unsigned long long)phba->bg_reftag_err_cnt); | ||
149 | } | 152 | } |
150 | 153 | ||
151 | /** | 154 | /** |
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 83a8e7eed628..b103b6ed4970 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -1315,7 +1315,7 @@ lpfc_parse_bg_err(struct lpfc_hba *phba, struct lpfc_scsi_buf *lpfc_cmd, | |||
1315 | 1315 | ||
1316 | printk(KERN_ERR "BG ERROR in cmd 0x%x lba 0x%llx blk cnt 0x%lx " | 1316 | printk(KERN_ERR "BG ERROR in cmd 0x%x lba 0x%llx blk cnt 0x%lx " |
1317 | "bgstat=0x%x bghm=0x%x\n", | 1317 | "bgstat=0x%x bghm=0x%x\n", |
1318 | cmd->cmnd[0], (u64)scsi_get_lba(cmd), | 1318 | cmd->cmnd[0], (unsigned long long)scsi_get_lba(cmd), |
1319 | cmd->request->nr_sectors, bgstat, bghm); | 1319 | cmd->request->nr_sectors, bgstat, bghm); |
1320 | 1320 | ||
1321 | spin_lock(&_dump_buf_lock); | 1321 | spin_lock(&_dump_buf_lock); |
@@ -2376,13 +2376,13 @@ lpfc_queuecommand(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) | |||
2376 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, | 2376 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, |
2377 | "9035 BLKGRD: READ @ sector %llu, " | 2377 | "9035 BLKGRD: READ @ sector %llu, " |
2378 | "count %lu\n", | 2378 | "count %lu\n", |
2379 | (u64)scsi_get_lba(cmnd), | 2379 | (unsigned long long)scsi_get_lba(cmnd), |
2380 | cmnd->request->nr_sectors); | 2380 | cmnd->request->nr_sectors); |
2381 | else if (cmnd->cmnd[0] == WRITE_10) | 2381 | else if (cmnd->cmnd[0] == WRITE_10) |
2382 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, | 2382 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, |
2383 | "9036 BLKGRD: WRITE @ sector %llu, " | 2383 | "9036 BLKGRD: WRITE @ sector %llu, " |
2384 | "count %lu cmd=%p\n", | 2384 | "count %lu cmd=%p\n", |
2385 | (u64)scsi_get_lba(cmnd), | 2385 | (unsigned long long)scsi_get_lba(cmnd), |
2386 | cmnd->request->nr_sectors, | 2386 | cmnd->request->nr_sectors, |
2387 | cmnd); | 2387 | cmnd); |
2388 | 2388 | ||
@@ -2403,13 +2403,14 @@ lpfc_queuecommand(struct scsi_cmnd *cmnd, void (*done) (struct scsi_cmnd *)) | |||
2403 | if (cmnd->cmnd[0] == READ_10) | 2403 | if (cmnd->cmnd[0] == READ_10) |
2404 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, | 2404 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, |
2405 | "9040 dbg: READ @ sector %llu, " | 2405 | "9040 dbg: READ @ sector %llu, " |
2406 | "count %lu\n", (u64)scsi_get_lba(cmnd), | 2406 | "count %lu\n", |
2407 | (unsigned long long)scsi_get_lba(cmnd), | ||
2407 | cmnd->request->nr_sectors); | 2408 | cmnd->request->nr_sectors); |
2408 | else if (cmnd->cmnd[0] == WRITE_10) | 2409 | else if (cmnd->cmnd[0] == WRITE_10) |
2409 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, | 2410 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, |
2410 | "9041 dbg: WRITE @ sector %llu, " | 2411 | "9041 dbg: WRITE @ sector %llu, " |
2411 | "count %lu cmd=%p\n", | 2412 | "count %lu cmd=%p\n", |
2412 | (u64)scsi_get_lba(cmnd), | 2413 | (unsigned long long)scsi_get_lba(cmnd), |
2413 | cmnd->request->nr_sectors, cmnd); | 2414 | cmnd->request->nr_sectors, cmnd); |
2414 | else | 2415 | else |
2415 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, | 2416 | lpfc_printf_vlog(vport, KERN_WARNING, LOG_BG, |