From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzeCo-0002tD-NW for qemu-devel@nongnu.org; Wed, 04 Oct 2017 03:34:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzeCk-0007pr-QX for qemu-devel@nongnu.org; Wed, 04 Oct 2017 03:34:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55640) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dzeCk-0007p5-K1 for qemu-devel@nongnu.org; Wed, 04 Oct 2017 03:34:54 -0400 Date: Wed, 4 Oct 2017 09:34:48 +0200 From: Cornelia Huck Message-ID: <20171004093448.04bb57a9.cohuck@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 18/47] hw/intc: Replace fprintf(stderr, "*\n" with error_report() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alistair Francis Cc: qemu-devel@nongnu.org, alistair23@gmail.com, armbru@redhat.com, Peter Maydell , Christian Borntraeger , Alexander Graf On Fri, 29 Sep 2017 17:15:54 -0700 Alistair Francis wrote: > Replace a large number of the fprintf(stderr, "*\n" calls with > error_report(). The functions were renamed with these commands and then > compiler issues where manually fixed. > diff --git a/hw/intc/s390_flic_kvm.c b/hw/intc/s390_flic_kvm.c > index d208cb81c4..e710bfdcda 100644 > --- a/hw/intc/s390_flic_kvm.c > +++ b/hw/intc/s390_flic_kvm.c > @@ -83,7 +83,7 @@ static void flic_enable_pfault(KVMS390FLICState *flic) > rc = ioctl(flic->fd, KVM_SET_DEVICE_ATTR, &attr); > > if (rc) { > - fprintf(stderr, "flic: couldn't enable pfault\n"); > + error_report("flic: couldn't enable pfault"); > } > } > > @@ -97,7 +97,7 @@ static void flic_disable_wait_pfault(KVMS390FLICState *flic) > rc = ioctl(flic->fd, KVM_SET_DEVICE_ATTR, &attr); > > if (rc) { > - fprintf(stderr, "flic: couldn't disable pfault\n"); > + error_report("flic: couldn't disable pfault"); > } > } > s390x part: Acked-by: Cornelia Huck