From: James Smart <james.smart@emulex.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH 06/12] lpfc 8.3.34: Correct typecasts for snprintf messages
Date: Tue, 14 Aug 2012 14:25:59 -0400 [thread overview]
Message-ID: <1344968759.4432.21.camel@myfc17> (raw)
Correct typecasts for snprintf messages
Signed-off-by: James Smart <james.smart@emulex.com>
---
lpfc_debugfs.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff -upNr a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c
--- a/drivers/scsi/lpfc/lpfc_debugfs.c 2012-08-11 12:24:51.385924283 -0400
+++ b/drivers/scsi/lpfc/lpfc_debugfs.c 2012-08-11 12:24:52.203924256 -0400
@@ -2045,7 +2045,7 @@ lpfc_idiag_queinfo_read(struct file *fil
"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], "
reply other threads:[~2012-08-14 18:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344968759.4432.21.camel@myfc17 \
--to=james.smart@emulex.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox