net: Improve the warnings for dubious command line option combinations
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 22 Mar 2011 18:39:40 +0000 (18:39 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 1 Apr 2011 20:53:49 +0000 (22:53 +0200)
commit495f4eb0cc192b21c182de56a1867becabbb5bf4
tree50b80ea4c3428089ea3ccc7a86d911c154d33706
parent13e2a927e75941fa8e6f90b9995127abd7fd457b
net: Improve the warnings for dubious command line option combinations

Improve the warnings we give if the user specified a combination of -net
options which don't make much sense:
 * Don't warn about anything if the config is the implicit default
   "-net user -net nic" rather than one specified by the user (this will
   only kick in for boards with no NIC or if CONFIG_SLIRP is not set)
 * Diagnose the case where the user asked for NICs which the board
   didn't instantiate (for example where the user asked for two NICs
   but the board only supports one)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
net.c