diff options
author | Thomas Huth <thuth@redhat.com> | 2018-08-16 13:35:52 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-23 13:32:50 +0200 |
commit | a3ab1dc072407db308bdfdd21c82d4eacaa377e9 (patch) | |
tree | 0ae87004fe91fae9a6c5d241a9597ec5873980e0 /vl.c | |
parent | 880b169a45214b85cdde1d61386eaa85d6372296 (diff) | |
download | qemu-a3ab1dc072407db308bdfdd21c82d4eacaa377e9.zip qemu-a3ab1dc072407db308bdfdd21c82d4eacaa377e9.tar.gz qemu-a3ab1dc072407db308bdfdd21c82d4eacaa377e9.tar.bz2 |
net: Silence 'has no peer' messages in testing mode
When running qtests with -nodefaults, we are not interested in
these 'XYZ has no peer' messages.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1534419358-10932-3-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -4559,11 +4559,10 @@ int main(int argc, char **argv, char **envp) * (2) CONFIG_SLIRP not set, in which case the implicit "-net nic" * sets up a nic that isn't connected to anything. */ - if (!default_net) { + if (!default_net && (!qtest_enabled() || has_defaults)) { net_check_clients(); } - if (boot_once) { qemu_boot_set(boot_once, &error_fatal); qemu_register_reset(restore_boot_order, g_strdup(boot_order)); |