[U-Boot] [PATCH 10/13] usb: mass-storage: Build warning fixes for 64-bit

Lukasz Majewski l.majewski at samsung.com
Mon Mar 23 11:23:56 CET 2015


Hi Thierry,

> From: Thierry Reding <treding at nvidia.com>
> 
> Fix a printf format mismatch warning seen on 64-bit builds.
> 
> Cc: Łukasz Majewski <l.majewski at samsung.com>
> Cc: Marek Vasut <marex at denx.de>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---
>  drivers/usb/gadget/f_mass_storage.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/gadget/f_mass_storage.c
> b/drivers/usb/gadget/f_mass_storage.c index
> e045957d0723..71fd49db7f24 100644 ---
> a/drivers/usb/gadget/f_mass_storage.c +++
> b/drivers/usb/gadget/f_mass_storage.c @@ -973,7 +973,7 @@ static int
> do_write(struct fsg_common *common) 
>  			/* If an error occurred, report it and its
> position */ if (nwritten < amount) {
> -				printf("nwritten:%d amount:%d\n",
> nwritten,
> +				printf("nwritten:%zd amount:%u\n",
> nwritten, amount);
>  				curlun->sense_data = SS_WRITE_ERROR;
>  				curlun->info_valid = 1;

Reviewed-by: Lukasz Majewski <l.majewski at samsung.com>

-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group


More information about the U-Boot mailing list