[PATCH][RESEND] dmi: dmi_decode: Add another commonly used serial number

IvanHu ivan.hu at canonical.com
Tue Mar 26 08:49:39 UTC 2013


On 03/22/2013 08:02 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Some newer systems that we are seeing don't seem to have the
> serial number initialised properly and are set to a default
> string "System Serial Number" which is meaningless.  Check for this.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/dmi/dmi_decode/dmi_decode.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/dmi/dmi_decode/dmi_decode.c b/src/dmi/dmi_decode/dmi_decode.c
> index 15b18b2..0e775db 100644
> --- a/src/dmi/dmi_decode/dmi_decode.c
> +++ b/src/dmi/dmi_decode/dmi_decode.c
> @@ -86,6 +86,7 @@ typedef struct {
>
>   static const fwts_dmi_pattern dmi_patterns[] = {
>   	{ "DMISerialNumber",	"Serial Number", 	"0123456789" },
> +	{ "DMISerialNumber",	"Serial Number", 	"System Serial Number" },
>   	{ "DMIAssetTag",	"Asset Tag",		"1234567890" },
>   	{ "DMIBadDefault",	NULL,			"To Be Filled By O.E.M." },
>   	{ NULL,			NULL,			NULL }
>

Acked-by: Ivan Hu <ivan.hu at canonical.com>




More information about the fwts-devel mailing list