diff options
author | Toomas Soome <tsoome@me.com> | 2018-07-09 13:58:59 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-09-10 09:01:48 -0400 |
commit | 0e8ce6ee7524ee6c2c24a2d4ed28ea71a5dcd85e (patch) | |
tree | c9e38727158361f156bbb21768988bf6e62d26a5 | |
parent | c8bfc1e4e5bf8c7324dc1b265113ba9e401264db (diff) | |
download | illumos-joyent-0e8ce6ee7524ee6c2c24a2d4ed28ea71a5dcd85e.tar.gz |
9786 loader.efi: enumeration value 'EfiMaxMemoryType' not handled in switch
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-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. */ |