Received: from [140.186.70.92] (port=42952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OK4Ws-0001H7-73 for qemu-devel@nongnu.org; Thu, 03 Jun 2010 03:07:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OK4Wq-0002wQ-U2 for qemu-devel@nongnu.org; Thu, 03 Jun 2010 03:07:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27290) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OK4Wq-0002wG-L4 for qemu-devel@nongnu.org; Thu, 03 Jun 2010 03:07:48 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH] give some useful error messages when tap open References: <20100602143301.0289520c@redhat.com> <20100602153312.5f665cb2@redhat.com> Date: Thu, 03 Jun 2010 09:07:45 +0200 In-Reply-To: <20100602153312.5f665cb2@redhat.com> (Luiz Capitulino's message of "Wed, 2 Jun 2010 15:33:12 -0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: mjt@tls.msk.ru, qemu-devel@nongnu.org Luiz Capitulino writes: > On Wed, 02 Jun 2010 20:26:58 +0200 > Markus Armbruster wrote: > >> Luiz Capitulino writes: >> >> > From: Michael Tokarev >> > >> > 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(). >> >> To error_report(), you mean. > > It's the original commit log.. Should this be fixed? If so, Michael, > could you resend? Or maybe it could be fixed up on commit. [...]