summaryrefslogtreecommitdiff
path: root/net/dump.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2017-04-25 09:50:44 +0200
committerJason Wang <jasowang@redhat.com>2017-05-23 10:10:38 +0800
commitf5ab20a4682959f06efe0787950a6c48a3e6f8fa (patch)
treeabb39f6faad0fa11a9574c1da0f0e6d341ee5b4a /net/dump.c
parent4348300e751df1cd24810fb5f699f1f85bbc2849 (diff)
downloadqemu-f5ab20a4682959f06efe0787950a6c48a3e6f8fa.tar.gz
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 <thuth@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/dump.c')
-rw-r--r--net/dump.c3
1 files changed, 3 insertions, 0 deletions
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 {