aboutsummaryrefslogtreecommitdiffstats
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 12:59:24 -0400
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,
2045 "EQ-STAT[max:x%x noE:x%x " 2045 "EQ-STAT[max:x%x noE:x%x "
2046 "bs:x%x proc:x%llx]\n", 2046 "bs:x%x proc:x%llx]\n",
2047 qp->q_cnt_1, qp->q_cnt_2, 2047 qp->q_cnt_1, qp->q_cnt_2,
2048 qp->q_cnt_3, qp->q_cnt_4); 2048 qp->q_cnt_3, (unsigned long long)qp->q_cnt_4);
2049 2049
2050 len += snprintf(pbuffer+len, 2050 len += snprintf(pbuffer+len,
2051 LPFC_QUE_INFO_GET_BUF_SIZE-len, 2051 LPFC_QUE_INFO_GET_BUF_SIZE-len,
@@ -2079,7 +2079,7 @@ proc_cq:
2079 "xabt:x%x wq:x%llx]\n", 2079 "xabt:x%x wq:x%llx]\n",
2080 qp->assoc_qid, 2080 qp->assoc_qid,
2081 qp->q_cnt_1, qp->q_cnt_2, 2081 qp->q_cnt_1, qp->q_cnt_2,
2082 qp->q_cnt_3, qp->q_cnt_4); 2082 qp->q_cnt_3, (unsigned long long)qp->q_cnt_4);
2083 len += snprintf(pbuffer+len, 2083 len += snprintf(pbuffer+len,
2084 LPFC_QUE_INFO_GET_BUF_SIZE-len, 2084 LPFC_QUE_INFO_GET_BUF_SIZE-len,
2085 "\tCQID[%02d], " 2085 "\tCQID[%02d], "
@@ -2109,7 +2109,7 @@ proc_cq:
2109 "AssocCQID[%02d]: " 2109 "AssocCQID[%02d]: "
2110 "WQ-STAT[oflow:x%x posted:x%llx]\n", 2110 "WQ-STAT[oflow:x%x posted:x%llx]\n",
2111 qp->assoc_qid, 2111 qp->assoc_qid,
2112 qp->q_cnt_1, qp->q_cnt_4); 2112 qp->q_cnt_1, (unsigned long long)qp->q_cnt_4);
2113 len += snprintf(pbuffer+len, 2113 len += snprintf(pbuffer+len,
2114 LPFC_QUE_INFO_GET_BUF_SIZE-len, 2114 LPFC_QUE_INFO_GET_BUF_SIZE-len,
2115 "\t\tWQID[%02d], " 2115 "\t\tWQID[%02d], "
@@ -2144,7 +2144,8 @@ proc_cq:
2144 "xabt:x%x wq:x%llx]\n", 2144 "xabt:x%x wq:x%llx]\n",
2145 qp->assoc_qid, 2145 qp->assoc_qid,
2146 qp->q_cnt_1, qp->q_cnt_2, 2146 qp->q_cnt_1, qp->q_cnt_2,
2147 qp->q_cnt_3, qp->q_cnt_4); 2147 qp->q_cnt_3,
2148 (unsigned long long)qp->q_cnt_4);
2148 len += snprintf(pbuffer+len, 2149 len += snprintf(pbuffer+len,
2149 LPFC_QUE_INFO_GET_BUF_SIZE-len, 2150 LPFC_QUE_INFO_GET_BUF_SIZE-len,
2150 "\tCQID[%02d], " 2151 "\tCQID[%02d], "
@@ -2198,7 +2199,8 @@ proc_cq:
2198 "xabt:x%x wq:x%llx]\n", 2199 "xabt:x%x wq:x%llx]\n",
2199 qp->assoc_qid, 2200 qp->assoc_qid,
2200 qp->q_cnt_1, qp->q_cnt_2, 2201 qp->q_cnt_1, qp->q_cnt_2,
2201 qp->q_cnt_3, qp->q_cnt_4); 2202 qp->q_cnt_3,
2203 (unsigned long long)qp->q_cnt_4);
2202 len += snprintf(pbuffer+len, 2204 len += snprintf(pbuffer+len,
2203 LPFC_QUE_INFO_GET_BUF_SIZE-len, 2205 LPFC_QUE_INFO_GET_BUF_SIZE-len,
2204 "\tCQID [%02d], " 2206 "\tCQID [%02d], "
@@ -2229,7 +2231,8 @@ proc_cq:
2229 " WQ-STAT[oflow:x%x " 2231 " WQ-STAT[oflow:x%x "
2230 "posted:x%llx]\n", 2232 "posted:x%llx]\n",
2231 qp->assoc_qid, 2233 qp->assoc_qid,
2232 qp->q_cnt_1, qp->q_cnt_4); 2234 qp->q_cnt_1,
2235 (unsigned long long)qp->q_cnt_4);
2233 len += snprintf(pbuffer+len, 2236 len += snprintf(pbuffer+len,
2234 LPFC_QUE_INFO_GET_BUF_SIZE-len, 2237 LPFC_QUE_INFO_GET_BUF_SIZE-len,
2235 "\t\tWQID[%02d], " 2238 "\t\tWQID[%02d], "
@@ -2259,7 +2262,8 @@ proc_cq:
2259 "trunc:x%x rcv:x%llx]\n", 2262 "trunc:x%x rcv:x%llx]\n",
2260 qp->assoc_qid, 2263 qp->assoc_qid,
2261 qp->q_cnt_1, qp->q_cnt_2, 2264 qp->q_cnt_1, qp->q_cnt_2,
2262 qp->q_cnt_3, qp->q_cnt_4); 2265 qp->q_cnt_3,
2266 (unsigned long long)qp->q_cnt_4);
2263 len += snprintf(pbuffer+len, 2267 len += snprintf(pbuffer+len,
2264 LPFC_QUE_INFO_GET_BUF_SIZE-len, 2268 LPFC_QUE_INFO_GET_BUF_SIZE-len,
2265 "\t\tHQID[%02d], " 2269 "\t\tHQID[%02d], "