commit | 33aaef9069013358ec6c92d2bac20aaeb9c637ec | [log] [tgz] |
---|---|---|
author | Andreas Fenkart <andreas.fenkart@digitalstrom.com> | Sat Jul 16 17:06:15 2016 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Jul 22 14:46:22 2016 -0400 |
tree | 2a68575edcc252e007e43c182d93322526c384de | |
parent | 3ff10741caedf7fe1c9b4e7c2d763c0149340e13 [diff] |
tools/env: reuse fw_getenv in fw_printenv function 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 <andreas.fenkart@digitalstrom.com>