Subject: OMAP-U-Boot-Utils: Fix compiler warnings From: Dirk Behme Fix warnings src/pusb.c: In function ‘send_file’: src/pusb.c:342: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’ src/pusb.c:354: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’ on 32 bit Linux system. Signed-off-by: Dirk Behme --- src/pusb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: omap-u-boot-utils/src/pusb.c =================================================================== --- omap-u-boot-utils.orig/src/pusb.c +++ omap-u-boot-utils/src/pusb.c @@ -342,7 +342,7 @@ int send_file(struct usb_device *dev, ch E_PRINT ("CMD:Expected to write %ld, " "actual write %d - err str: %s\n", - sizeof(command), ret, strerror(errno)); + (long int)sizeof(command), ret, strerror(errno)); fail = -1; goto closeup; } @@ -354,7 +354,7 @@ int send_file(struct usb_device *dev, ch E_PRINT ("FSize:Expected to write %ld, " "actual write %d - err str: %s\n", - sizeof(filesize), ret, strerror(errno)); + (long int)sizeof(filesize), ret, strerror(errno)); fail = -1; goto closeup; }