Current-Users archive

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

Re: unreadable XML proplists from drvctl(8)



On Wed, 18 Jan 2012, Bernd Ernesti wrote:

Can we get 'drvctl -r xyzbus0' to return an error if more then one
property is available and return the supported values at the same
time too, in a human readable output?

That would make it more easier to use it.

It already returns an error: EINVARG

UInfortunately, the same error code is used for many other errors that are checked in kern/kern_drvctl.c so it is difficult to differentiate the specific error condition with explicitly checking the prop-list first.


-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index