diff options
Diffstat (limited to 'drivers')
-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; |