[flashrom] [PATCH] don't print dmidecode shell error

Owen Mann owen-javanet at rcn.com
Thu Apr 7 19:28:16 CEST 2011


This should work on DOS; the only change is from "/dev/null" to "NUL":
C:\HOTFIXES-ng>command
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.

C:\HOTFIX~2>echo foo
foo

C:\HOTFIX~2>echo foo>NUL

C:\HOTFIX~2>dir NUL

 Directory of \\.

File Not Found

[granted this is on XP; but it should work anywhere]


---- Original message ----
>Date: Thu, 07 Apr 2011 19:16:04 +0200
>From: flashrom-bounces+owen=mann.org at flashrom.org (on behalf of Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>)
>Subject: Re: [flashrom] [PATCH] don't print dmidecode shell error  
>To: Stefan Reinauer <stefan.reinauer at coreboot.org>
>Cc: flashrom at flashrom.org
>
>Am Donnerstag, den 07.04.2011, 18:40 +0200 schrieb Stefan Reinauer:
>> * Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>
>> > Not every OS has a unix command interpreter. This will break on
>> > DOS. Most likely fine if DOS is detected per ifdef.
>> Ok, how about this one? 
>
>> Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
>Acked-by: Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>
>
>> +#if defined (__DJGPP__) || defined (_WIN32)
>That might be overly conservative, but I am fine with out. while
>command.com does not support 2>something, I am quite sure cmd.exe does.
>
>Regards,
>  Michael Karcher
>
>
>_______________________________________________
>flashrom mailing list
>flashrom at flashrom.org
>http://www.flashrom.org/mailman/listinfo/flashrom




More information about the flashrom mailing list