[flashrom] [PATCH] don't print dmidecode shell error
Stefan Reinauer
stefan.reinauer at coreboot.org
Tue Apr 5 23:48:37 CEST 2011
* Stefan Reinauer <stefan.reinauer at coreboot.org> [110329 21:55]:
> Don't print the error
>
> sh: dmidecode: not found
>
> if dmidecode is not there.
>
> Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
>
> Index: dmi.c
> ===================================================================
> --- dmi.c (revision 1282)
> +++ dmi.c (working copy)
> @@ -75,7 +75,7 @@
> };
>
> #define DMI_COMMAND_LEN_MAX 260
> -static const char *dmidecode_command = "dmidecode";
> +static const char *dmidecode_command = "dmidecode 2>/dev/null";
>
> static char *dmistrings[ARRAY_SIZE(dmidecode_names)];
>
Any opinions on a half line patch? :)
More information about the flashrom
mailing list