From: Tom Rini Date: Fri, 22 Jul 2016 20:12:51 -0400 Subject: [U-Boot] [U-Boot, v2, 4/4] tools/env: reuse fw_getenv in fw_printenv function In-Reply-To: <1468681575-19671-5-git-send-email-andreas.fenkart@digitalstrom.com> References: <1468681575-19671-5-git-send-email-andreas.fenkart@digitalstrom.com> Message-ID: <20160723001251.GD14698@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jul 16, 2016 at 05:06:15PM +0200, Andreas Fenkart wrote: > Try to avoid adhoc iteration of the environment. Reuse fw_getenv > to find the variables that should be printed. Only use open-coded > iteration when printing all variables. > For backwards compatibility, keep emitting a newline when > printing with value_only. > > Signed-off-by: Andreas Fenkart Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: