ACK: [PATCH 2/3] uefidump: add dumping for the UFS device path
Colin Ian King
colin.king at canonical.com
Thu Nov 5 13:13:16 UTC 2015
On 05/11/15 09:00, Ivan Hu wrote:
> Add dumping with uefi spec. 2.5 for new messaging device path, UFS device path.
>
> Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
> ---
> src/uefi/uefidump/uefidump.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/src/uefi/uefidump/uefidump.c b/src/uefi/uefidump/uefidump.c
> index 654bc54..c56082d 100644
> --- a/src/uefi/uefidump/uefidump.c
> +++ b/src/uefi/uefidump/uefidump.c
> @@ -498,6 +498,13 @@ static char *uefidump_build_dev_path(char *path, fwts_uefi_dev_path *dev_path, c
> }
> }
> break;
> + case FWTS_UEFI_UFS_DEVICE_PATH_SUBTYPE:
> + if (dev_path_len >= sizeof(fwts_uefi_ufs_dev_path)) {
> + fwts_uefi_ufs_dev_path *u = (fwts_uefi_ufs_dev_path *)dev_path;
> + path = uefidump_vprintf(path, "\\UFS(0x%" PRIx8 ",0x%" PRIx8 ")",
> + u->target_id, u->lun);
> + }
> + break;
> default:
> path = uefidump_vprintf(path, "\\Unknown-MESSAGING-DEV-PATH(0x%" PRIx8 ")", dev_path->subtype);
> break;
>
Acked-by: Colin Ian King <colin.king at canonical.com>
More information about the fwts-devel
mailing list