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: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] give some useful error messages when tap open fails
Date: Fri, 23 Apr 2010 15:28:32 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4

Am 23.04.2010 14:52, schrieb Michael Tokarev:
> 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.

Sorry, I missed that. You're right, of course.

Kevin




reply via email to

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