usbboot: Use "%ld" in printf for ftell return value (long int).

This commit is contained in:
Diego Herranz
2014-11-11 16:20:09 +01:00
committed by Gordon Hollingworth
parent be1bc64249
commit 2652a9420f

2
main.c
View File

@@ -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);
}