[U-Boot] [PATCH 10/13] usb: mass-storage: Build warning fixes for 64-bit
Thierry Reding
thierry.reding at gmail.com
Fri Mar 20 12:41:25 CET 2015
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;
--
2.3.2
More information about the U-Boot
mailing list