diff options
-rw-r--r-- | miscutils/nandwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index a93433457..554d36249 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c | |||
@@ -182,7 +182,7 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv) | |||
182 | mtdoffset = next_good_eraseblock(fd, &meminfo, blockstart); | 182 | mtdoffset = next_good_eraseblock(fd, &meminfo, blockstart); |
183 | if (IS_NANDWRITE) | 183 | if (IS_NANDWRITE) |
184 | printf("Writing at 0x%08x\n", mtdoffset); | 184 | printf("Writing at 0x%08x\n", mtdoffset); |
185 | else if (mtdoffset > blockstart) { | 185 | else if (mtdoffset > blockstart && !(opts & OPT_b)) { |
186 | int bad_len = MIN(mtdoffset, limit) - blockstart; | 186 | int bad_len = MIN(mtdoffset, limit) - blockstart; |
187 | dump_bad(&meminfo, bad_len, !(opts & OPT_o)); | 187 | dump_bad(&meminfo, bad_len, !(opts & OPT_o)); |
188 | } | 188 | } |