diff options
author | Dave Chapman <dave@dchapman.com> | 2007-07-29 20:43:42 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-07-29 20:43:42 +0000 |
commit | 3b1119bf27ec945a54e1d60279fc542629885c64 (patch) | |
tree | c54ec3792dd865befcc4d5f6dc3160da606e8c63 | |
parent | 6139eeda4f81e22b6be22498355645b656911587 (diff) | |
download | rockbox-3b1119bf27ec945a54e1d60279fc542629885c64.tar.gz rockbox-3b1119bf27ec945a54e1d60279fc542629885c64.zip |
Fix some cosmetic bugs in error messages. These generated warnings when compiling ipodpatcher with -O2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14065 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/ipodpatcher/ipodpatcher.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.c b/rbutil/ipodpatcher/ipodpatcher.c index 567c5b9cce..e43fc8d156 100644 --- a/rbutil/ipodpatcher/ipodpatcher.c +++ b/rbutil/ipodpatcher/ipodpatcher.c | |||
@@ -390,7 +390,6 @@ int diskmove(struct ipod_t* ipod, int delta) | |||
390 | int src_end; | 390 | int src_end; |
391 | int bytesleft; | 391 | int bytesleft; |
392 | int chunksize; | 392 | int chunksize; |
393 | int i; | ||
394 | int n; | 393 | int n; |
395 | 394 | ||
396 | src_start = ipod->ipod_directory[1].devOffset + ipod->sector_size; | 395 | src_start = ipod->ipod_directory[1].devOffset + ipod->sector_size; |
@@ -437,7 +436,7 @@ int diskmove(struct ipod_t* ipod, int delta) | |||
437 | 436 | ||
438 | if (n < chunksize) { | 437 | if (n < chunksize) { |
439 | fprintf(stderr,"[ERR] Short read - requested %d bytes, received %d\n", | 438 | fprintf(stderr,"[ERR] Short read - requested %d bytes, received %d\n", |
440 | i,n); | 439 | chunksize,n); |
441 | return -1; | 440 | return -1; |
442 | } | 441 | } |
443 | 442 | ||
@@ -453,7 +452,7 @@ int diskmove(struct ipod_t* ipod, int delta) | |||
453 | 452 | ||
454 | if (n < chunksize) { | 453 | if (n < chunksize) { |
455 | fprintf(stderr,"[ERR] Short write - requested %d bytes, received %d\n" | 454 | fprintf(stderr,"[ERR] Short write - requested %d bytes, received %d\n" |
456 | ,i,n); | 455 | ,chunksize,n); |
457 | return -1; | 456 | return -1; |
458 | } | 457 | } |
459 | 458 | ||
@@ -602,7 +601,7 @@ int add_bootloader(struct ipod_t* ipod, char* filename, int type) | |||
602 | 601 | ||
603 | if (n < entryOffset) { | 602 | if (n < entryOffset) { |
604 | fprintf(stderr,"[ERR] Short read - requested %d bytes, received %d\n" | 603 | fprintf(stderr,"[ERR] Short read - requested %d bytes, received %d\n" |
605 | ,i,n); | 604 | ,entryOffset,n); |
606 | return -1; | 605 | return -1; |
607 | } | 606 | } |
608 | 607 | ||
@@ -637,7 +636,7 @@ int add_bootloader(struct ipod_t* ipod, char* filename, int type) | |||
637 | 636 | ||
638 | if (n < (entryOffset+paddedlength)) { | 637 | if (n < (entryOffset+paddedlength)) { |
639 | fprintf(stderr,"[ERR] Short read - requested %d bytes, received %d\n" | 638 | fprintf(stderr,"[ERR] Short read - requested %d bytes, received %d\n" |
640 | ,i,n); | 639 | ,entryOffset+paddedlength,n); |
641 | return -1; | 640 | return -1; |
642 | } | 641 | } |
643 | 642 | ||
@@ -882,7 +881,7 @@ int write_firmware(struct ipod_t* ipod, char* filename, int type) | |||
882 | 881 | ||
883 | if (n < newsize) { | 882 | if (n < newsize) { |
884 | fprintf(stderr,"[ERR] Short write - requested %d bytes, received %d\n" | 883 | fprintf(stderr,"[ERR] Short write - requested %d bytes, received %d\n" |
885 | ,i,n); | 884 | ,newsize,n); |
886 | return -1; | 885 | return -1; |
887 | } | 886 | } |
888 | fprintf(stderr,"[INFO] Wrote %d bytes to firmware partition\n",n); | 887 | fprintf(stderr,"[INFO] Wrote %d bytes to firmware partition\n",n); |