ACK: [PATCH 6/6] uefidump: add dumping global variable SysPrep####

Colin Ian King colin.king at canonical.com
Mon Jan 4 11:17:29 UTC 2016


On 18/12/15 06:31, Ivan Hu wrote:
> sync up with uefi spec 2.5
> 
> Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
> ---
>  src/uefi/uefidump/uefidump.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/src/uefi/uefidump/uefidump.c b/src/uefi/uefidump/uefidump.c
> index 6caf501..a3a544e 100644
> --- a/src/uefi/uefidump/uefidump.c
> +++ b/src/uefi/uefidump/uefidump.c
> @@ -1438,6 +1438,16 @@ static void uefidump_var(fwts_framework *fw, fwts_uefi_var *var)
>  		return;
>  	}
>  
> +	/*
> +	 * Check the System Prep application load option SysPrep####. #### is a printed hex value.
> +	 */
> +	if ((strlen(varname) == 11) && (strncmp(varname, "SysPrep", 7) == 0)
> +			&& isxdigit(varname[7]) && isxdigit(varname[8])
> +			&& isxdigit(varname[9]) && isxdigit(varname[10])) {
> +		uefidump_info_bootdev(fw, var);
> +		return;
> +	}
> +
>  	/* otherwise just do a plain old hex dump */
>  	uefidump_var_hexdump(fw, var);
>  }
> 
Acked-by: Colin Ian King <colin.king at canonical.com>



More information about the fwts-devel mailing list