Skip to content

Commit

Permalink
acpi: fix printk format warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Andi Kleen committed Jul 16, 2008
1 parent 3d532d5 commit 12b2b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/processor_throttling.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ static ssize_t acpi_processor_write_throttling(struct file *file,
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;
Expand Down

0 comments on commit 12b2b34

Please sign in to comment.