diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-07-23 14:20:12 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-08-05 12:42:18 +0800 |
commit | 71da0c6cb80e3708213a08c06e71f099534bcd2a (patch) | |
tree | e8327fd499bebdfb54a38a8f544f8079936bf806 /utils/pb-config.c | |
parent | 6897abaa97a02e0ab8ac07209a5e4966bfe101c5 (diff) | |
download | talos-petitboot-71da0c6cb80e3708213a08c06e71f099534bcd2a.tar.gz talos-petitboot-71da0c6cb80e3708213a08c06e71f099534bcd2a.zip |
discover: Add debug flag to config
This change adds a debug flag to the config, and groups it under
not-user-modifiable parts of struct config.
This means we no longer need the pb-sysinfo helper, as the last
remaining function (--debug-enabled) can be implemented with pb-config.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils/pb-config.c')
-rw-r--r-- | utils/pb-config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/pb-config.c b/utils/pb-config.c index d05538b..3bd670c 100644 --- a/utils/pb-config.c +++ b/utils/pb-config.c @@ -68,6 +68,8 @@ static void print_config(void *ctx, struct config *config, const char *var) config->autoboot_timeout_sec); print_one_config(ctx, var, "safe-mode", "%s", config->safe_mode ? "enabled" : "disabled"); + print_one_config(ctx, var, "debug", "%s", + config->debug ? "enabled" : "disabled"); } int main(int argc, char **argv) |