From 2652a9420f8b3646b6cb30d300f838b8e2ffaf59 Mon Sep 17 00:00:00 2001 From: Diego Herranz Date: Tue, 11 Nov 2014 16:20:09 +0100 Subject: [PATCH] usbboot: Use "%ld" in printf for ftell return value (long int). --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index a93d402..06e77d9 100755 --- a/main.c +++ b/main.c @@ -214,7 +214,7 @@ int main(int argc, char *argv[]) } fseek(fp_img, 0, SEEK_END); message.length += ftell(fp_img); - if(verbose) printf("Adding %d bytes of binary to end of elf\n", ftell(fp_img)); + if(verbose) printf("Adding %ld bytes of binary to end of elf\n", ftell(fp_img)); fseek(fp_img, 0, SEEK_SET); } -- libgit2 0.21.4