public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Asaf Vertz <asaf.vertz@tandemg.com>
To: linuxraid@lsi.com
Cc: JBottomley@parallels.com, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] scsi: 3w-9xxx: fix format string warnings
Date: Wed, 21 Jan 2015 14:44:43 +0200	[thread overview]
Message-ID: <20150121124443.GA18019@ubuntu> (raw)

Fixed the following warnings (reported by cppcheck):
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 2)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 3)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 4)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 5)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 6)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 7)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 8)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 9)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 10)
requires 'int' but the argument type is 'unsigned int'.
[drivers/scsi/3w-9xxx.c:166]: (warning) %d in format string (no. 11)
requires 'int' but the argument type is 'unsigned int'.

Signed-off-by: Asaf Vertz <asaf.vertz@tandemg.com>
---
 drivers/scsi/3w-9xxx.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c
index 7600639..123eba5 100644
--- a/drivers/scsi/3w-9xxx.c
+++ b/drivers/scsi/3w-9xxx.c
@@ -164,16 +164,16 @@ static ssize_t twa_show_stats(struct device *dev,
 
 	spin_lock_irqsave(tw_dev->host->host_lock, flags);
 	len = snprintf(buf, PAGE_SIZE, "3w-9xxx Driver version: %s\n"
-		       "Current commands posted:   %4d\n"
-		       "Max commands posted:       %4d\n"
-		       "Current pending commands:  %4d\n"
-		       "Max pending commands:      %4d\n"
-		       "Last sgl length:           %4d\n"
-		       "Max sgl length:            %4d\n"
-		       "Last sector count:         %4d\n"
-		       "Max sector count:          %4d\n"
-		       "SCSI Host Resets:          %4d\n"
-		       "AEN's:                     %4d\n", 
+		       "Current commands posted:   %4u\n"
+		       "Max commands posted:       %4u\n"
+		       "Current pending commands:  %4u\n"
+		       "Max pending commands:      %4u\n"
+		       "Last sgl length:           %4u\n"
+		       "Max sgl length:            %4u\n"
+		       "Last sector count:         %4u\n"
+		       "Max sector count:          %4u\n"
+		       "SCSI Host Resets:          %4u\n"
+		       "AEN's:                     %4u\n",
 		       TW_DRIVER_VERSION,
 		       tw_dev->posted_request_count,
 		       tw_dev->max_posted_request_count,
-- 
1.7.0.4


                 reply	other threads:[~2015-01-21 12:44 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=20150121124443.GA18019@ubuntu \
    --to=asaf.vertz@tandemg.com \
    --cc=JBottomley@parallels.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linuxraid@lsi.com \
    /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