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

Keng-Yu Lin kengyu at canonical.com
Tue Mar 26 05:56:06 UTC 2013


On Fri, Mar 22, 2013 at 8:02 PM, Colin King <colin.king at canonical.com> 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 }
> --
> 1.8.1.2
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>



More information about the fwts-devel mailing list