Skip to content

Commit

Permalink
[SCSI] lpfc 8.3.34: Correct typecasts for snprintf messages
Browse files Browse the repository at this point in the history
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
James Smart authored and James Bottomley committed Sep 14, 2012
1 parent 2613470 commit a51a178
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions drivers/scsi/lpfc/lpfc_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -2079,7 +2079,7 @@ lpfc_idiag_queinfo_read(struct file *file, char __user *buf, size_t nbytes,
"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], "
Expand Down Expand Up @@ -2109,7 +2109,7 @@ lpfc_idiag_queinfo_read(struct file *file, char __user *buf, size_t nbytes,
"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], "
Expand Down Expand Up @@ -2144,7 +2144,8 @@ lpfc_idiag_queinfo_read(struct file *file, char __user *buf, size_t nbytes,
"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], "
Expand Down Expand Up @@ -2198,7 +2199,8 @@ lpfc_idiag_queinfo_read(struct file *file, char __user *buf, size_t nbytes,
"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], "
Expand Down Expand Up @@ -2229,7 +2231,8 @@ lpfc_idiag_queinfo_read(struct file *file, char __user *buf, size_t nbytes,
" 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], "
Expand Down Expand Up @@ -2259,7 +2262,8 @@ lpfc_idiag_queinfo_read(struct file *file, char __user *buf, size_t nbytes,
"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], "
Expand Down

0 comments on commit a51a178

Please sign in to comment.