Skip to content
Snippets Groups Projects
Commit c5c41c45 authored by Andreas Fenkart's avatar Andreas Fenkart Committed by Tom Rini
Browse files

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: default avatarAndreas Fenkart <andreas.fenkart@digitalstrom.com>
parent 1b7427cd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment