net/dump: Issue a warning for the deprecated "-net dump"
PATCH 1/1 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 <[email protected]>
--- net/dump.c | 3 +++ 1 file changed, 3 insertions(+)
net/dump.c +3 -0
@@ -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 {
Signature · 1 line
1.8.3.1
Jason Wang
AppliedQuoted 15 lines · Thomas Huth
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 <[email protected]>--- net/dump.c | 3 +++ 1 file changed, 3 insertions(+)net/dump.c +0
-0
net/dump.c int net_init_dump(const Netdev *netdev, const char *name, · line 202
Quoted 9 lines
net/dump.c +3
-0@@ -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 {
Applied.
Thanks