From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb: lthor: Specify correct parameter for sizeof type
Date: Tue, 03 Nov 2015 11:12:49 +0100 [thread overview]
Message-ID: <20151103111249.23244dea@amdc2363> (raw)
In-Reply-To: <54c9d68ad131fc632f6824005bfe5418d2c0c8e3.1446218381.git.michal.simek@xilinx.com>
Hi Michal,
> This patch removes this warning:
> CC drivers/usb/gadget/f_thor.o
> drivers/usb/gadget/f_thor.c: In function ?thor_tx_data?:
> drivers/usb/gadget/f_thor.c:572:2: warning: format ?%d? expects
> argument of type ?int?, but argument 4 has type ?long unsigned
> int? [-Wformat=] debug("%s: dev->in_req->length:%d to_cpy:%d\n",
> __func__, ^
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> drivers/usb/gadget/f_thor.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c
> index ff1481ba3723..9ed0ce3d3132 100644
> --- a/drivers/usb/gadget/f_thor.c
> +++ b/drivers/usb/gadget/f_thor.c
> @@ -569,7 +569,7 @@ static void thor_tx_data(unsigned char *data, int
> len)
> dev->in_req->length = len;
>
> - debug("%s: dev->in_req->length:%d to_cpy:%d\n", __func__,
> + debug("%s: dev->in_req->length:%d to_cpy:%zd\n", __func__,
> dev->in_req->length, sizeof(data));
>
> status = usb_ep_queue(dev->in_ep, dev->in_req, 0);
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
prev parent reply other threads:[~2015-11-03 10:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-30 15:19 [U-Boot] [PATCH] usb: lthor: Specify correct parameter for sizeof type Michal Simek
2015-11-03 10:12 ` Lukasz Majewski [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=20151103111249.23244dea@amdc2363 \
--to=l.majewski@samsung.com \
--cc=u-boot@lists.denx.de \
/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