From: Thierry Reding Date: Fri, 20 Mar 2015 11:41:25 +0000 (+0100) Subject: usb: mass-storage: Build warning fixes for 64-bit X-Git-Tag: v2015.07-rc1~429 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec5e78cf8ac3a1bbf692698112ae15982d2bbf1b;p=oweals%2Fu-boot.git usb: mass-storage: Build warning fixes for 64-bit Fix a printf format mismatch warning seen on 64-bit builds. Cc: Ɓukasz Majewski Cc: Marek Vasut Signed-off-by: Thierry Reding Acked-by: Lukasz Majewski Tested-by: Lukasz Majewski Reviewed-by: Lukasz Majewski --- diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index e045957d07..71fd49db7f 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;