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)
commitf68b9d672b90dedc79aeb9b44607f484dbe46a6b
tree50b80ea4c3428089ea3ccc7a86d911c154d33706
parente6b3c8ca0222f6633516c0461a713e7bddc4f076
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