[v3,4/7] nanddump: warn about new default BB handling

Message ID 1308761363-16512-5-git-send-email-computersforpeace@gmail.com
State Accepted
Commit 2055285d28b036a81f92bbbed92d06f926d779cb
Headers show

Commit Message

Brian Norris June 22, 2011, 4:49 p.m.
In an upcoming release, we will no longer default to --bb=padbad. Instead,
the default will be --bb=skipbad. This makes nanddump a better inverse
operation to nandwrite.

This patch prints warnings for users so that they get a chance to update
their scripts before the default changes officially.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
 nanddump.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/nanddump.c b/nanddump.c
index 103ad06..b6307cf 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -249,6 +249,11 @@  static void process_options(int argc, char * const argv[])
+	if (bb_default)
+		warnmsg("you did not specify a default bad-block handling\n"
+			"  method. In future versions, the default will change to\n"
+			"  --bb=skipbad. Use \"nanddump --help\" for more information.");
 	if ((argc - optind) != 1 || error)