dmidecode-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dmidecode] dmidecode should omit warning about SMBIOS version when


From: Petter Reinholdtsen
Subject: Re: [dmidecode] dmidecode should omit warning about SMBIOS version when -q is set
Date: Sun, 16 Mar 2014 16:36:00 +0100
User-agent: Mutt/1.5.20 (2009-12-10)

[Jens Rosenboom]
> As in particular scripts call dmidecode often with -s (implying -q)
> and expect to get only a single word (and in particular only a
> single line of output), I propose that in this case the warning
> about an unsupported SMBIOS version should be ommited. Most scripts
> won't be able to handle the warning properly anyway, also most -s
> options should still continue to work. My patch would look like
> this:

What about sending the warning to stderr instead?  This way scripts
looking on stdin will not notice, while the info is still emitted.

-- 
Happy hacking
Petter Reinholdtsen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]