diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-06-17 12:43:41 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:01 -0400 |
commit | 12b2b34e240a24bdbb2fdacf26a54b24ebf1ed81 (patch) | |
tree | dd0649a9bf9befdc90a0de090b797e617c3513e2 /drivers/acpi/processor_throttling.c | |
parent | 3d532d5e3882c1387a2722df2a368c4a9224b12f (diff) |
acpi: fix printk format warning
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>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/acpi/processor_throttling.c')
-rw-r--r-- | drivers/acpi/processor_throttling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c index 53345dbc5027..0622ace05220 100644 --- a/drivers/acpi/processor_throttling.c +++ b/drivers/acpi/processor_throttling.c | |||
@@ -1255,7 +1255,7 @@ static ssize_t acpi_processor_write_throttling(struct file *file, | |||
1255 | if (state_val >= pr->throttling.state_count) | 1255 | if (state_val >= pr->throttling.state_count) |
1256 | return -EINVAL; | 1256 | return -EINVAL; |
1257 | 1257 | ||
1258 | snprintf(tmpbuf, 5, "%d", state_val); | 1258 | snprintf(tmpbuf, 5, "%zu", state_val); |
1259 | 1259 | ||
1260 | if (strcmp(tmpbuf, charp) != 0) | 1260 | if (strcmp(tmpbuf, charp) != 0) |
1261 | return -EINVAL; | 1261 | return -EINVAL; |