From: Andreas Reichel <[email protected]> Display flags set in env_status_flags.
Signed-off-by: Andreas Reichel <[email protected]> --- tools/bg_setenv.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/bg_setenv.c b/tools/bg_setenv.c index 0847de1..8abd015 100644 --- a/tools/bg_setenv.c +++ b/tools/bg_setenv.c @@ -483,8 +483,10 @@ static void dump_env(BG_ENVDATA *env) { char buffer[ENV_STRING_LENGTH]; bool in_progress; + bool failsafe; in_progress = env->status_flags & ENV_STATUS_IN_PROGRESS; + failsafe = env->status_flags & ENV_STATUS_FAILSAFE; fprintf(stdout, "Values:\n"); fprintf(stdout, "in_progress: %s\n", in_progress ? "yes" : "no"); @@ -497,7 +499,11 @@ static void dump_env(BG_ENVDATA *env) "watchdog timeout: %u seconds\n", env->watchdog_timeout_sec); fprintf(stdout, "ustate: %u (%s)\n", (uint8_t)env->ustate, ustate2str(env->ustate)); - fprintf(stdout, "\n"); + fprintf(stdout, "flags: "); + if (failsafe) { + fprintf(stdout, "FAILSAFE "); + } + fprintf(stdout, "\n\n"); fprintf(stdout, "user variables:\n"); dump_uservars(env->userdata); fprintf(stdout, "\n\n"); -- 2.17.0 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20180525120108.31055-15-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
