Received: from eggs.gnu.org ([140.186.70.92]:33981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdJvC-0007Ui-9x for qemu-devel@nongnu.org; Wed, 21 Dec 2011 06:01:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdJv2-0005rq-QG for qemu-devel@nongnu.org; Wed, 21 Dec 2011 06:01:18 -0500 Date: Wed, 21 Dec 2011 11:01:02 +0000 From: Stefan Hajnoczi Message-ID: <20111221110102.GC22697@stefanha-thinkpad.localdomain> References: <1324401188-9712-1-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1324401188-9712-1-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] Strip trailing '\n' from error_report()'s first argument (again) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On Tue, Dec 20, 2011 at 06:13:08PM +0100, Markus Armbruster wrote: > Commit 6daf194d got rid of them, but Hans and Gerd added some more > lately. Tracked down with this Coccinelle semantic patch: > > @r@ > expression fmt; > position p; > @@ > error_report(fmt, ...)@p > @script:python@ > fmt << r.fmt; > p << r.p; > @@ > if "\\n" in str(fmt): > print "%s:%s:%s:%s" % (p[0].file, p[0].line, p[0].column, fmt) > > Signed-off-by: Markus Armbruster > --- > hw/usb-bus.c | 12 ++++++------ > usb-redir.c | 4 ++-- > 2 files changed, 8 insertions(+), 8 deletions(-) Thanks, applied to the trivial patches tree: https://github.com/stefanha/qemu/commits/trivial-patches Stefan