diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/boot/sys/boot/efi/libefi/env.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/boot/sys/boot/efi/libefi/env.c b/usr/src/boot/sys/boot/efi/libefi/env.c index 8f45a681fa..9fda7f22cc 100644 --- a/usr/src/boot/sys/boot/efi/libefi/env.c +++ b/usr/src/boot/sys/boot/efi/libefi/env.c @@ -402,6 +402,7 @@ efi_memory_type(EFI_MEMORY_TYPE type) "PalCode", "PersistentMemory" }; + switch (type) { case EfiReservedMemoryType: case EfiLoaderCode: @@ -419,8 +420,9 @@ efi_memory_type(EFI_MEMORY_TYPE type) case EfiPalCode: case EfiPersistentMemory: return (types[type]); + default: + return ("Unknown"); } - return ("Unknown"); } /* Print memory type table. */ |