diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-01-14 17:05:57 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-01-22 23:09:12 +0100 |
commit | 3c950b31782db4c8643cdbc449d023ef37b8cb23 (patch) | |
tree | 3e14ee8ef5e51bdbbc270ee060c5d56a56980f45 | |
parent | bc0bd77ed4238295bb0355f4c2d678388a80955a (diff) | |
download | u-boot-3c950b31782db4c8643cdbc449d023ef37b8cb23.tar.gz |
efi_loader: text output for device path end node
Without the patch a device path consisting only of an end node is
displayed as '/UNKNOWN(007f,00ff)'. It should be displayed as '/'.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | lib/efi_loader/efi_device_path_to_text.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c index 40eae730ed..a79e60a4ee 100644 --- a/lib/efi_loader/efi_device_path_to_text.c +++ b/lib/efi_loader/efi_device_path_to_text.c @@ -245,6 +245,8 @@ static char *efi_convert_single_device_node_to_text( case DEVICE_PATH_TYPE_MEDIA_DEVICE: str = dp_media(str, dp); break; + case DEVICE_PATH_TYPE_END: + break; default: str = dp_unknown(str, dp); } |