public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Randy Dunlap <randy.dunlap@ORACLE.COM>
Cc: linux-acpi@vger.kernel.org, Yi Yang <yi.y.yang@intel.com>,
	linux-next@vger.kernel.org
Subject: Re: [PATCH -next] acpi: fix printk format warning
Date: Tue, 17 Jun 2008 12:59:13 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.1.10.0806171258410.7277@localhost.localdomain> (raw)
In-Reply-To: <20080617094341.d144a5f8.randy.dunlap@oracle.com>


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
> 

      reply	other threads:[~2008-06-17 16:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17 16:43 [PATCH -next] acpi: fix printk format warning Randy Dunlap
2008-06-17 16:59 ` Len Brown [this message]

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=alpine.LFD.1.10.0806171258410.7277@localhost.localdomain \
    --to=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=randy.dunlap@ORACLE.COM \
    --cc=yi.y.yang@intel.com \
    /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