From ed2718028dadec5d7ea1c6fc1dfa9fdb1785c927 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 22 Jan 2013 04:22:10 +0100 Subject: dump: suppress output for unset value --- gummiboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3