summaryrefslogtreecommitdiff
path: root/drivers/scsi/lpfc
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2012-08-14 14:25:59 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-09-14 17:59:24 +0100
commita51a17831b28001645f4442c21ba5c85329d36d2 (patch)
treec303d476550ed8b1cf24bd8223e36e3f26c2beac /drivers/scsi/lpfc
parent2613470a5fa56ea9cd95305308d4373bb5310263 (diff)
[SCSI] lpfc 8.3.34: Correct typecasts for snprintf messages
Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r--drivers/scsi/lpfc/lpfc_debugfs.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c
index 6b1dfc7cc57c..f63f5ff7f274 100644
--- a/drivers/scsi/lpfc/lpfc_debugfs.c
+++ b/drivers/scsi/lpfc/lpfc_debugfs.c
@@ -2045,7 +2045,7 @@ lpfc_idiag_queinfo_read(struct file *file, char __user *buf, size_t nbytes,
"EQ-STAT[max:x%x noE:x%x "
"bs:x%x proc:x%llx]\n",
qp->q_cnt_1, qp->q_cnt_2,
- qp->q_cnt_3, qp->q_cnt_4);
+ qp->q_cnt_3, (unsigned long long)qp->q_cnt_4);
len += snprintf(pbuffer+len,
LPFC_QUE_INFO_GET_BUF_SIZE-len,
@@ -2079,7 +2079,7 @@ proc_cq:
"xabt:x%x wq:x%llx]\n",
qp->assoc_qid,
qp->q_cnt_1, qp->q_cnt_2,
- qp->q_cnt_3, qp->q_cnt_4);
+ qp->q_cnt_3, (unsigned long long)qp->q_cnt_4);
len += snprintf(pbuffer+len,
LPFC_QUE_INFO_GET_BUF_SIZE-len,
"\tCQID[%02d], "
@@ -2109,7 +2109,7 @@ proc_cq:
"AssocCQID[%02d]: "
"WQ-STAT[oflow:x%x posted:x%llx]\n",
qp->assoc_qid,
- qp->q_cnt_1, qp->q_cnt_4);
+ qp->q_cnt_1, (unsigned long long)qp->q_cnt_4);
len += snprintf(pbuffer+len,
LPFC_QUE_INFO_GET_BUF_SIZE-len,
"\t\tWQID[%02d], "
@@ -2144,7 +2144,8 @@ proc_cq:
"xabt:x%x wq:x%llx]\n",
qp->assoc_qid,
qp->q_cnt_1, qp->q_cnt_2,
- qp->q_cnt_3, qp->q_cnt_4);
+ qp->q_cnt_3,
+ (unsigned long long)qp->q_cnt_4);
len += snprintf(pbuffer+len,
LPFC_QUE_INFO_GET_BUF_SIZE-len,
"\tCQID[%02d], "
@@ -2198,7 +2199,8 @@ proc_cq:
"xabt:x%x wq:x%llx]\n",
qp->assoc_qid,
qp->q_cnt_1, qp->q_cnt_2,
- qp->q_cnt_3, qp->q_cnt_4);
+ qp->q_cnt_3,
+ (unsigned long long)qp->q_cnt_4);
len += snprintf(pbuffer+len,
LPFC_QUE_INFO_GET_BUF_SIZE-len,
"\tCQID [%02d], "
@@ -2229,7 +2231,8 @@ proc_cq:
" WQ-STAT[oflow:x%x "
"posted:x%llx]\n",
qp->assoc_qid,
- qp->q_cnt_1, qp->q_cnt_4);
+ qp->q_cnt_1,
+ (unsigned long long)qp->q_cnt_4);
len += snprintf(pbuffer+len,
LPFC_QUE_INFO_GET_BUF_SIZE-len,
"\t\tWQID[%02d], "
@@ -2259,7 +2262,8 @@ proc_cq:
"trunc:x%x rcv:x%llx]\n",
qp->assoc_qid,
qp->q_cnt_1, qp->q_cnt_2,
- qp->q_cnt_3, qp->q_cnt_4);
+ qp->q_cnt_3,
+ (unsigned long long)qp->q_cnt_4);
len += snprintf(pbuffer+len,
LPFC_QUE_INFO_GET_BUF_SIZE-len,
"\t\tHQID[%02d], "