qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] give some useful error messages when tap open f


From: Michael Tokarev
Subject: Re: [Qemu-devel] [PATCH] give some useful error messages when tap open fails
Date: Fri, 23 Apr 2010 16:52:38 +0400
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Kevin Wolf wrote:
> Am 22.04.2010 11:52, schrieb Markus Armbruster:
>> Michael Tokarev <address@hidden> writes:
>>
>>> In net/tap-linux.c, when manipulation of /dev/net/tun fails, it prints
>>> (with fprintf) something like this:
>>>
[]
>>>      TFR(fd = open("/dev/net/tun", O_RDWR));
>>>      if (fd < 0) {
>>> -        fprintf(stderr, "warning: could not open /dev/net/tun: no virtual 
>>> network emulation\n");
>>> +        qemu_error("could not open /dev/net/tun: %m\n");
>>>          return -1;
> 
> I'm not sure where this %m is defined exactly (Linux specific? Maybe
> BSDs, too?), but it doesn't seem to work with mingw.

The file being patched is tap-linux.c.
I noted this in my first email.

Thanks!

/mjt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]