From: Mike Frysinger Date: Mon, 12 Sep 2011 12:45:43 -0400 Subject: [U-Boot] [PATCH 5/5] NAND: Add scrub.quiet command option In-Reply-To: <1315800250-19761-6-git-send-email-marek.vasut@gmail.com> References: <1315800250-19761-1-git-send-email-marek.vasut@gmail.com> <1315800250-19761-6-git-send-email-marek.vasut@gmail.com> Message-ID: <201109121245.44321.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, September 12, 2011 00:04:10 Marek Vasut wrote: > This allows the scrub command to scrub without asking the user if he really > wants to scrub the area. Useful in scripts. "quiet" and "skip user input" are two different things. can you use a more clean option like accepting "-y" to the "scrub" subcommand ? > @@ -569,6 +574,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char > * const argv[]) return -1; > } > } > + > ret = nand_erase_opts(nand, &opts); > printf("%s\n", ret ? "ERROR" : "OK"); unrelated whitespace changes are frowned upon -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110912/d6d9c825/attachment.pgp