public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] acpi: fix printk format warning
@ 2008-06-17 16:43 Randy Dunlap
  2008-06-17 16:59 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-06-17 16:43 UTC (permalink / raw)
  To: linux-acpi; +Cc: len.brown, linux-next

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] acpi: fix printk format warning
  2008-06-17 16:43 [PATCH -next] acpi: fix printk format warning Randy Dunlap
@ 2008-06-17 16:59 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2008-06-17 16:59 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-acpi, Yi Yang, linux-next


applied,
thanks,
-Len


On Tue, 17 Jun 2008, Randy Dunlap wrote:

> 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;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-17 16:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-17 16:43 [PATCH -next] acpi: fix printk format warning Randy Dunlap
2008-06-17 16:59 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox