From: Thomas Huth Date: Tue, 25 Apr 2017 07:50:44 +0000 (+0200) Subject: net/dump: Issue a warning for the deprecated "-net dump" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f5ab20a4682959f06efe0787950a6c48a3e6f8fa;p=qemu.git net/dump: Issue a warning for the deprecated "-net dump" Network dumping should be done with "-object filter-dump" nowadays. Using "-net dump" via the VLAN mechanism is considered as deprecated and might be removed in a future release. So warn the users now to inform them to user the filter-dump method instead. Signed-off-by: Thomas Huth Signed-off-by: Jason Wang --- diff --git a/net/dump.c b/net/dump.c index 89a149b5dd..442eb532f9 100644 --- a/net/dump.c +++ b/net/dump.c @@ -194,6 +194,9 @@ int net_init_dump(const Netdev *netdev, const char *name, assert(peer); + error_report("'-net dump' is deprecated. " + "Please use '-object filter-dump' instead."); + if (dump->has_file) { file = dump->file; } else {