qemu/net
Michael Tokarev 91ca60e012 give some useful error messages when tap open
In net/tap-linux.c, when manipulation of /dev/net/tun fails, it prints
(with fprintf) something like this:

  warning: could not open /dev/net/tun: no virtual network emulation

this has 2 issues:
 1) it is not a warning really, it's a fatal error (kvm exits after
that),
 2) there's no indication as of what's actually wrong: printing errno there
    is helpful.

The patch below removes the "warning" prefix, uses %m (since it's linux,
%m is available as format modifier), and changes fprintf() to %qemu_error().
Now it prints something like this instead:

 could not configure /dev/net/tun: Device or resource busy

(there are 2 messages like that in the same function)

This fixes Debian bug #578154, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578154

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-06-22 15:15:30 -05:00
..
checksum.c
checksum.h
dump.c error: Replace qemu_error() by error_report() 2010-03-16 16:58:32 +01:00
dump.h net: move dump backend code from net.c to net/dump.c 2009-12-03 09:41:28 -06:00
queue.c net/queue: queue packets even if sender doesn't supply a callback 2009-11-09 08:43:02 -06:00
queue.h
slirp.c error: Replace qemu_error() by error_report() 2010-03-16 16:58:32 +01:00
slirp.h net: move slirp code from net.c to net/slirp.c 2009-12-03 09:41:27 -06:00
socket.c error: Replace qemu_error() by error_report() 2010-03-16 16:58:32 +01:00
socket.h net: move socket backend code from net.c to net/socket.c 2009-12-03 09:41:28 -06:00
tap-aix.c
tap-bsd.c Fix BSD and win32 builds 2010-03-27 18:41:08 +00:00
tap-linux.c give some useful error messages when tap open 2010-06-22 15:15:30 -05:00
tap-linux.h Unbreak Linux build 2009-10-30 16:45:20 -05:00
tap-solaris.c error: Replace qemu_error() by error_report() 2010-03-16 16:58:32 +01:00
tap-win32.c Fix build on mingw32 2010-04-02 10:40:08 -05:00
tap.c Remove dead assignments in various common files, spotted by clang analyzer 2010-04-25 18:35:52 +00:00
tap.h tap: add API to retrieve vhost net header 2010-04-01 13:56:43 -05:00
util.c net: move parse_macaddr() to net/util.[ch] 2009-12-03 09:41:34 -06:00
util.h net: move parse_macaddr() to net/util.[ch] 2009-12-03 09:41:34 -06:00
vde.c net: Fix bogus "Warning: vlan 0 with no nics" with -device 2010-02-19 12:12:46 -06:00
vde.h net: move vde code from net.c to net/vde.c 2009-12-03 09:41:28 -06:00