]> www.infradead.org Git - mtd-utils.git/commit
nanddump: add "forcebinary" flag
authorBrian Norris <norris@broadcom.com>
Mon, 19 Jul 2010 17:33:16 +0000 (10:33 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 21 Jul 2010 09:59:57 +0000 (12:59 +0300)
commit880e6c65503a1a969bd00959b1e7a19a31914c61
tree4c68a76158b61d7af61070c33455d199bcc5f4c6
parent48ae9d621bc8df3ca54e8e852632f7af77ec5ea0
nanddump: add "forcebinary" flag

Restrict binary dumping so that by default, binary garbage is not
printed directly to a terminal. Output redicted to files or piped to
other commands should not be affected (as judged by "isatty(ofd)").
A new flag "-a" or "--forcebinary" is included so that users can
override this behavior if necessary.

Signed-off-by: Brian Norris <norris@broadcom.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
nanddump.c