From ec5e78cf8ac3a1bbf692698112ae15982d2bbf1b Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Fri, 20 Mar 2015 12:41:25 +0100 Subject: [PATCH] usb: mass-storage: Build warning fixes for 64-bit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- 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 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; -- 2.25.1