[prev in list] [next in list] [prev in thread] [next in thread]
List: fwts-devel
Subject: [PATCH 3/3] uefidump: add dumping for the eMMC device path
From: Ivan Hu <ivan.hu () canonical ! com>
Date: 2016-09-29 8:27:23
Message-ID: 1475137643-28064-3-git-send-email-ivan.hu () canonical ! com
[Download RAW message or body]
Add dumping with uefi spec. 2.6 for new messaging device path, eMMC device path
Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
src/uefi/uefidump/uefidump.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/uefi/uefidump/uefidump.c b/src/uefi/uefidump/uefidump.c
index 03529b5..5336ba4 100644
--- a/src/uefi/uefidump/uefidump.c
+++ b/src/uefi/uefidump/uefidump.c
@@ -530,6 +530,12 @@ static char *uefidump_build_dev_path(char *path, fwts_uefi_dev_path *dev_path, c
path = uefidump_vprintf(path, "\\WiFi(%s)", w->ssid);
}
break;
+ case FWTS_UEFI_EMMC_DEVICE_PATH_SUBTYPE:
+ if (dev_path_len >= sizeof(fwts_uefi_emmc_dev_path)) {
+ fwts_uefi_emmc_dev_path *e = (fwts_uefi_emmc_dev_path *)dev_path;
+ path = uefidump_vprintf(path, "\\eMMC(0x%" PRIx8 ")", e->slot_num);
+ }
+ break;
default:
path = uefidump_vprintf(path, "\\Unknown-MESSAGING-DEV-PATH(0x%" PRIx8 ")", dev_path->subtype);
break;
--
1.9.1
--
fwts-devel mailing list
fwts-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/fwts-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic