usb: mass-storage: Build warning fixes for 64-bit
authorThierry Reding <treding@nvidia.com>
Fri, 20 Mar 2015 11:41:25 +0000 (12:41 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:47:48 +0000 (05:47 +0200)
Fix a printf format mismatch warning seen on 64-bit builds.

Cc: Ɓukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/gadget/f_mass_storage.c

index e045957d07238862f23c80cd7e90845ae14e8447..71fd49db7f246df33a602f42cfcda0d50d74bcec 100644 (file)
@@ -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;