ACK: [PATCH 3/3] uefidump: add dumping for the eMMC device path
Alex Hung
alex.hung at canonical.com
Thu Sep 29 23:36:09 UTC 2016
On 2016-09-29 01:27 AM, Ivan Hu wrote:
> Add dumping with uefi spec. 2.6 for new messaging device path, eMMC device path
>
> Signed-off-by: Ivan Hu <ivan.hu at 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;
>
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list