Received: from eggs.gnu.org ([2001:4830:134:3::10]:45742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1WNt-0008R8-Vf for qemu-devel@nongnu.org; Tue, 23 Jul 2013 02:47:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1WNs-0006IB-S9 for qemu-devel@nongnu.org; Tue, 23 Jul 2013 02:47:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1WNs-0006I5-KE for qemu-devel@nongnu.org; Tue, 23 Jul 2013 02:47:44 -0400 From: Markus Armbruster References: <51ED9E3F.3080504@hds.com> <51EDA2D1.5080603@suse.de> Date: Tue, 23 Jul 2013 08:47:36 +0200 In-Reply-To: <51EDA2D1.5080603@suse.de> ("Andreas =?utf-8?Q?F=C3=A4rber=22?= =?utf-8?Q?'s?= message of "Mon, 22 Jul 2013 23:23:29 +0200") Message-ID: <87txjlzsaf.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Convert stderr message calling error_get_pretty() to error_report() to prepend timestamp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?Q?F=C3=A4rber?= Cc: Seiji Aguchi , lersek@redhat.com, qemu-devel@nongnu.org, tomoki.sekiyama@hds.com, lcapitulino@redhat.com Andreas F=C3=A4rber writes: > Am 22.07.2013 23:03, schrieb Seiji Aguchi: >> Convert stderr messages calling error_get_pretty() >> to error_report(). >>=20 >> Timestamp is prepended by -msg timstamp option with it. >>=20 >> This is suggested by Luiz Capitulino. >>=20 >> http://marc.info/?l=3Dqemu-devel&m=3D137331442628866&w=3D2 >>=20 >> Signed-off-by: Seiji Aguchi >> --- >> arch_init.c | 4 ++-- >> hw/char/serial.c | 5 +++-- >> hw/i386/pc.c | 6 +++--- >> qemu-char.c | 2 +- >> target-i386/cpu.c | 2 +- >> target-ppc/translate_init.c | 3 ++- >> vl.c | 9 +++++---- >> 7 files changed, 17 insertions(+), 14 deletions(-) > > How is this related to error_get_pretty()? > > And does error_report() expect a trailing \n or not? I would assume no, > but spotted some in this patch. You're correct, and the patch needs fixing. See commits 312fd5f error: Strip trailing '\n' from error string arguments (again) be62a2e Strip trailing '\n' from error_report()'s first argument (again) 6daf194 Strip trailing '\n' from error_report()'s first argument [...]