aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_attr.c
diff options
context:
space:
mode:
authorJames Smart <James.Smart@Emulex.Com>2008-12-16 10:34:09 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-12-29 12:24:34 -0500
commit87b5c328c7e32ab9075086f990001bffb7b19550 (patch)
treeef64e2ec14880dd17b41f1d1d79f36f7aa81be57 /drivers/scsi/lpfc/lpfc_attr.c
parent302378534c8d4403f9a9b2a20f875b6866a27e42 (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/lpfc/lpfc_attr.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_attr.c9
1 files changed, 6 insertions, 3 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
129static ssize_t 130static 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
140static ssize_t 142static 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/**