Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm1PQ-0005Gz-SW for qemu-devel@nongnu.org; Mon, 01 Mar 2010 03:55:24 -0500 Received: from [199.232.76.173] (port=49805 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm1PQ-0005Gf-BQ for qemu-devel@nongnu.org; Mon, 01 Mar 2010 03:55:24 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nm1PO-0006jY-S0 for qemu-devel@nongnu.org; Mon, 01 Mar 2010 03:55:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8936) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nm1PO-0006jG-6B for qemu-devel@nongnu.org; Mon, 01 Mar 2010 03:55:22 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o218tKUw008704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 1 Mar 2010 03:55:21 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH RFC 13/48] error: Make qemu_error() add a newline, strip it from arguments References: <1267034160-3517-1-git-send-email-armbru@redhat.com> <1267034160-3517-14-git-send-email-armbru@redhat.com> <20100226164428.1a6bd890@redhat.com> Date: Mon, 01 Mar 2010 09:55:18 +0100 In-Reply-To: <20100226164428.1a6bd890@redhat.com> (Luiz Capitulino's message of "Fri, 26 Feb 2010 16:44:28 -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: qemu-devel@nongnu.org Luiz Capitulino writes: > On Wed, 24 Feb 2010 18:55:25 +0100 > Markus Armbruster wrote: > >> This fixes a few error messages lacking a newline: >> net_handle_fd_param()'s "No file descriptor named %s found", and >> tap_open()'s "vnet_hdr=1 requested, but no kernel support for >> IFF_VNET_HDR available" (all three versions). >> >> There's one place that passes arguments without newlines >> intentionally: load_vmstate(). Fix it up. > > I'm not a big fun of printing functions that add automatic newline, > specially in C. But I understand that you're doing this because you're > going to prefix some info to the printed string. > > In this case, you could rename the function to qemu_error_nl(). Or at > least document it properly in the function definition. Fair enough, I'll document it.