diff options
author | Kay Sievers <kay@vrfy.org> | 2013-01-22 04:22:10 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-01-22 04:22:10 +0100 |
commit | ed2718028dadec5d7ea1c6fc1dfa9fdb1785c927 (patch) | |
tree | 9f152571b7acf6271a8a2e05f4fd5683b70fac54 | |
parent | 6a1cf1ec76262ce3abdf0f4b6492b84f34366632 (diff) |
dump: suppress output for unset value
-rw-r--r-- | gummiboot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gummiboot.c b/gummiboot.c index e5d931e..8becadb 100644 --- a/gummiboot.c +++ b/gummiboot.c @@ -343,7 +343,8 @@ static VOID dump_status(Config *config, CHAR16 *loaded_image_path) { if (config->timeout_sec_efivar >= 0) Print(L"timeout (EFI var): %d\n", config->timeout_sec_efivar); Print(L"timeout (config): %d\n", config->timeout_sec_config); - Print(L"default pattern: '%s'\n", config->entry_default_pattern); + if (config->entry_default_pattern) + Print(L"default pattern: '%s'\n", config->entry_default_pattern); Print(L"\n"); Print(L"config entry count: %d\n", config->entry_count); |