public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: micky <micky_ching@realsil.com.cn>
To: Fabio Falzoi <fabio.falzoi84@gmail.com>, <gregkh@linuxfoundation.org>
Cc: <devel@driverdev.osuosl.org>, <linux-kernel@vger.kernel.org>,
	<joe@perches.com>, <wei_wang@realsil.com.cn>
Subject: Re: [PATCH v2 4/4] Staging: rts5208: Fix a format specifier for dev_err
Date: Tue, 8 Jul 2014 10:13:18 +0800	[thread overview]
Message-ID: <53BB53BE.3040208@realsil.com.cn> (raw)
In-Reply-To: <1404717004-29540-5-git-send-email-fabio.falzoi84@gmail.com>

On 07/07/2014 03:10 PM, Fabio Falzoi wrote:
> Fix an incorrect use of the %d format specifier in dev_err that caused a
> warning.
>
> Signed-off-by: Fabio Falzoi <fabio.falzoi84@gmail.com>
> ---
>   drivers/staging/rts5208/rtsx.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c
> index 4f5f7a3..9aae7ac 100644
> --- a/drivers/staging/rts5208/rtsx.c
> +++ b/drivers/staging/rts5208/rtsx.c
> @@ -463,14 +463,14 @@ static int rtsx_control_thread(void *__dev)
>   		 * the maximum known LUN
>   		 */
>   		else if (chip->srb->device->id) {
> -			dev_err(&dev->pci->dev, "Bad target number (%d:%d)\n",
> +			dev_err(&dev->pci->dev, "Bad target number (%d:%llu)\n",
here exist some compile warning.
drivers/staging/rts5208/rtsx.c:468:5: warning: format ‘%llu’ expects 
argument of type ‘long long unsigned int’, but argument 4 has type 
‘unsigned int’ [-Wformat]

>   				chip->srb->device->id,
>   				chip->srb->device->lun);
>   			chip->srb->result = DID_BAD_TARGET << 16;
>   		}
>   
>   		else if (chip->srb->device->lun > chip->max_lun) {
> -			dev_err(&dev->pci->dev, "Bad LUN (%d:%d)\n",
> +			dev_err(&dev->pci->dev, "Bad LUN (%d:%llu)\n",
>   				chip->srb->device->id,
>   				chip->srb->device->lun);
>   			chip->srb->result = DID_BAD_TARGET << 16;


  reply	other threads:[~2014-07-08  2:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07  7:10 [PATCH v2 0/4] Staging: rts5208: Use standard debug features Fabio Falzoi
2014-07-07  7:10 ` [PATCH v2 1/4] Staging: rts5208: Replace custom macro with pr_debug Fabio Falzoi
2014-07-07  7:10 ` [PATCH v2 2/4] Staging: rts5208: Replace custom macro with print_hex_dump_bytes Fabio Falzoi
2014-07-08  2:12   ` micky
2014-07-08  6:23     ` Fabio Falzoi
2014-07-08  8:45       ` Dan Carpenter
2014-07-08 16:33         ` Joe Perches
2014-07-07  7:10 ` [PATCH v2 3/4] Staging: rts5208: Remove CONFIG_RTS5208_DEBUG option Fabio Falzoi
2014-07-07  7:10 ` [PATCH v2 4/4] Staging: rts5208: Fix a format specifier for dev_err Fabio Falzoi
2014-07-08  2:13   ` micky [this message]
2014-07-08  6:22     ` Fabio Falzoi

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=53BB53BE.3040208@realsil.com.cn \
    --to=micky_ching@realsil.com.cn \
    --cc=devel@driverdev.osuosl.org \
    --cc=fabio.falzoi84@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wei_wang@realsil.com.cn \
    /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