qemu-e2k/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
queue.c
queue.h
slirp.c error: Replace qemu_error() by error_report() 2010-03-16 16:58:32 +01:00
slirp.h
socket.c error: Replace qemu_error() by error_report() 2010-03-16 16:58:32 +01:00
socket.h
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
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
util.h
vde.c
vde.h