diff options
Diffstat (limited to 'utils/jz4740_usbtool')
-rwxr-xr-x | utils/jz4740_usbtool/jz4740_usbtool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/jz4740_usbtool/jz4740_usbtool.c b/utils/jz4740_usbtool/jz4740_usbtool.c index 908cf723d0..84ffbf7098 100755 --- a/utils/jz4740_usbtool/jz4740_usbtool.c +++ b/utils/jz4740_usbtool/jz4740_usbtool.c | |||
@@ -349,7 +349,8 @@ found: | |||
349 | int filesize(FILE* fd) | 349 | int filesize(FILE* fd) |
350 | { | 350 | { |
351 | int tmp; | 351 | int tmp; |
352 | tmp = fseek(fd, 0, SEEK_END); | 352 | fseek(fd, 0, SEEK_END); |
353 | tmp = ftell(fd); | ||
353 | fseek(fd, 0, SEEK_SET); | 354 | fseek(fd, 0, SEEK_SET); |
354 | return tmp; | 355 | return tmp; |
355 | } | 356 | } |
@@ -427,6 +428,8 @@ int main(int argc, char* argv[]) | |||
427 | } | 428 | } |
428 | fclose(fd); | 429 | fclose(fd); |
429 | 430 | ||
431 | fprintf(stderr, "[INFO] File size: %d bytes\n", n); | ||
432 | |||
430 | jzconnect(address, buf, len, 1); | 433 | jzconnect(address, buf, len, 1); |
431 | break; | 434 | break; |
432 | case 2: | 435 | case 2: |