nanddump: change default to --bb=skipbad
authorRichard Genoud <richard.genoud@gmail.com>
Wed, 25 Jun 2014 15:38:30 +0000 (17:38 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 25 Jun 2014 15:38:30 +0000 (17:38 +0200)
since mtd-utils 1.4.7, the default behaviour of nanddump is skipbad
(commit 2521d4f1b6b9866a9c89f3c11a4f6a3d763ff1d7)

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/nandwrite.c

index 509c0641274f80b4e19b0fe4d169522ec655b1d5..29ff351a3e7d11354f2ffed8e103f940419f7aef 100644 (file)
@@ -107,7 +107,7 @@ int nandwrite_main(int argc UNUSED_PARAM, char **argv)
        /* Buffer for OOB data */
        unsigned char *oobbuf;
        unsigned opts;
-       unsigned bb_method = BB_PADBAD;
+       unsigned bb_method = BB_SKIPBAD;
        int fd;
        ssize_t cnt;
        unsigned mtdoffset, meminfo_writesize, blockstart, limit;