From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mms2.broadcom.com ([216.31.210.18]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QWGfx-00066I-H3 for linux-mtd@lists.infradead.org; Mon, 13 Jun 2011 23:36:10 +0000 From: "Brian Norris" To: "Artem Bityutskiy" Subject: [PATCH 4/6] nanddump: warn about changing default badblock method Date: Mon, 13 Jun 2011 16:32:01 -0700 Message-ID: <1308007923-6820-4-git-send-email-computersforpeace@gmail.com> In-Reply-To: <1308007923-6820-1-git-send-email-computersforpeace@gmail.com> References: <1308007923-6820-1-git-send-email-computersforpeace@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Brian Norris , linux-mtd@lists.infradead.org, Mike Frysinger List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- nanddump.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/nanddump.c b/nanddump.c index 4f28e33..211f8ae 100644 --- a/nanddump.c +++ b/nanddump.c @@ -249,6 +249,11 @@ static void process_options(int argc, char * const argv[]) exit(EXIT_FAILURE); } + if (bb_default) + fprintf(stderr, "Warning: 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.\n"); + if ((argc - optind) != 1 || error) display_help(); -- 1.7.0.4