From: Patrick DELAUNAY Date: Fri, 31 Jan 2020 14:31:13 +0000 Subject: [PATCH 1/5] cmd: env: add option for quiet output on env info In-Reply-To: References: <20200124123346.32210-1-patrick.delaunay@st.com> Message-ID: <965b97ea1b3e466a9bf18ff5f66efd99@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, > From: Simon Glass > Sent: jeudi 30 janvier 2020 03:18 > > On Fri, 24 Jan 2020 at 05:34, Patrick Delaunay > wrote: > > > > The "env info" can be use for test with -d and -p parameter, in > > scripting case the output of the command is not needed. > > > > This patch allows to deactivate this output with a new option "-q". > > > > For example, we can save the environment if default environment is > > used and persistent storage is managed with: > > if env info -p -d -q; then env save; fi > > > > Without the quiet option, I have the unnecessary traces First boot: > > Default environment is used > > Environment can be persisted > > Saving Environment to EXT4... File System is consistent > > > > Next boot: > > Environment was loaded from persistent storage > > Environment can be persisted > > > > Signed-off-by: Patrick Delaunay > > --- > > > > cmd/Kconfig | 1 + > > cmd/nvedit.c | 26 +++++++++++++++++++------- > > 2 files changed, 20 insertions(+), 7 deletions(-) > > Reviewed-by: Simon Glass Thanks for the review > We could have a test for this command Yes, I will do it. Regards Patrick