diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-06-22 11:58:44 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-06-22 11:58:44 +0000 |
| commit | 8f9b293c4c9084253d8b9be56762bc8afbe4007a (patch) | |
| tree | 532b10c14d93bc68b2f3064f50ea1135e66d29f8 /utils | |
| parent | f0087f06aad7c35d5c95421e661f0852814cf90a (diff) | |
| download | rockbox-8f9b293c4c9084253d8b9be56762bc8afbe4007a.zip rockbox-8f9b293c4c9084253d8b9be56762bc8afbe4007a.tar.gz rockbox-8f9b293c4c9084253d8b9be56762bc8afbe4007a.tar.bz2 rockbox-8f9b293c4c9084253d8b9be56762bc8afbe4007a.tar.xz | |
Fix a mistake + be more verbose
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17751 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
| -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 908cf72..84ffbf7 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: |