From: Randy Dunlap <randy.dunlap@ORACLE.COM>
To: linux-acpi@vger.kernel.org
Cc: len.brown@intel.com, linux-next@vger.kernel.org
Subject: [PATCH -next] acpi: fix printk format warning
Date: Tue, 17 Jun 2008 09:43:41 -0700 [thread overview]
Message-ID: <20080617094341.d144a5f8.randy.dunlap@oracle.com> (raw)
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix printk format warning:
linux-next-20080617/drivers/acpi/processor_throttling.c:1258: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/acpi/processor_throttling.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20080617.orig/drivers/acpi/processor_throttling.c
+++ linux-next-20080617/drivers/acpi/processor_throttling.c
@@ -1255,7 +1255,7 @@ static ssize_t acpi_processor_write_thro
if (state_val >= pr->throttling.state_count)
return -EINVAL;
- snprintf(tmpbuf, 5, "%d", state_val);
+ snprintf(tmpbuf, 5, "%zu", state_val);
if (strcmp(tmpbuf, charp) != 0)
return -EINVAL;
next reply other threads:[~2008-06-17 16:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-17 16:43 Randy Dunlap [this message]
2008-06-17 16:59 ` [PATCH -next] acpi: fix printk format warning Len Brown
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=20080617094341.d144a5f8.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-next@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