From b72d76230ee47af6934f5c6f787f503ea164f22a Mon Sep 17 00:00:00 2001 From: mcuelenaere Date: Sun, 22 Jun 2008 11:58:44 +0000 Subject: [PATCH] Fix a mistake + be more verbose git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17751 a1c6a512-1295-4272-9138-f99709370657 --- utils/jz4740_usbtool/jz4740_usbtool.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/jz4740_usbtool/jz4740_usbtool.c b/utils/jz4740_usbtool/jz4740_usbtool.c index 908cf723d..84ffbf709 100755 --- a/utils/jz4740_usbtool/jz4740_usbtool.c +++ b/utils/jz4740_usbtool/jz4740_usbtool.c @@ -349,7 +349,8 @@ found: int filesize(FILE* fd) { int tmp; - tmp = fseek(fd, 0, SEEK_END); + fseek(fd, 0, SEEK_END); + tmp = ftell(fd); fseek(fd, 0, SEEK_SET); return tmp; } @@ -427,6 +428,8 @@ int main(int argc, char* argv[]) } fclose(fd); + fprintf(stderr, "[INFO] File size: %d bytes\n", n); + jzconnect(address, buf, len, 1); break; case 2: -- 2.11.4.GIT