diff mbox

[6/6] nanddump: warn about future default --nooob

Message ID 1308007923-6820-6-git-send-email-computersforpeace@gmail.com
State New, archived
Headers show

Commit Message

Brian Norris June 13, 2011, 11:32 p.m. UTC
To work as a proper inverse to nandwrite, nanddump must not dump OOB data by
default. This patch prints a warning regarding the future change.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
 feature-removal-schedule.txt |    8 ++++++++
 nanddump.c                   |    3 +++
 2 files changed, 11 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/feature-removal-schedule.txt b/feature-removal-schedule.txt
index 0f1f5c5..0bb5cb2 100644
--- a/feature-removal-schedule.txt
+++ b/feature-removal-schedule.txt
@@ -65,3 +65,11 @@  Transition summary table:
  --omitbad      --bb=omitbad               dump flash data, substituting nothing for any bad blocks
 
 ---------------------------
+
+5. nanddump will not dump OOB by default
+
+In 1.4.6, nanddump will not dump OOB by default. To dump OOB, you will have to
+explicitly use the option '-o' or '--oob'. For now, there is simply a warning
+every time you use nanddump.
+
+---------------------------
diff --git a/nanddump.c b/nanddump.c
index 211f8ae..9c2e326 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -355,6 +355,9 @@  int main(int argc, char * const argv[])
 
 	process_options(argc, argv);
 
+	fprintf(stderr, "Warning: in next release, nanddump will not dump OOB"
+			" by default.\n");
+
 	/* Initialize libmtd */
 	mtd_desc = libmtd_open();
 	if (!mtd_desc)