From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX37c-0003iP-LZ for qemu-devel@nongnu.org; Mon, 17 Jul 2017 06:19:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX37b-0005zt-Nk for qemu-devel@nongnu.org; Mon, 17 Jul 2017 06:19:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44892) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dX37b-0005wM-IK for qemu-devel@nongnu.org; Mon, 17 Jul 2017 06:19:23 -0400 Date: Mon, 17 Jul 2017 12:19:06 +0200 From: Kevin Wolf Message-ID: <20170717101906.GC5301@noname.redhat.com> References: <1499952476-3454-1-git-send-email-armbru@redhat.com> <1499952476-3454-7-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1499952476-3454-7-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PULL 6/9] Convert error_report() to warn_report() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, Peter Maydell , Cornelia Huck , Stefan Hajnoczi , "Michael S. Tsirkin" , Jeff Cody , Gerd Hoffmann , Rob Herring , Josh Durgin , Alexander Graf , Christian Borntraeger , Marcel Apfelbaum , Richard Henderson , Jason Wang , Eduardo Habkost , Peter Lieven , Greg Kurz , Alistair Francis , Peter Chubb , Ronnie Sahlberg , Paolo Bonzini , David Gibson , Peter Crosthwaite , Marcelo Tosatti , "Richard W.M. Jones" , Max Reitz , "Aneesh Kumar K.V" , Igor Mammedov Am 13.07.2017 um 15:27 hat Markus Armbruster geschrieben: > From: Alistair Francis > > Convert all uses of error_report("warning:"... to use warn_report() > instead. This helps standardise on a single method of printing warnings > to the user. > > All of the warnings were changed using these two commands: > find ./* -type f -exec sed -i \ > 's|error_report(".*warning[,:] |warn_report("|Ig' {} + > > Indentation fixed up manually afterwards. > > The test-qdev-global-props test case was manually updated to ensure that > this patch passes make check (as the test cases are case sensitive). This patch broke qemu-iotests 051 because it neglected to update the reference output. Not sure if a change of the message was even intended, but with a error location prefix, the order changes: -(qemu) QEMU_PROG: -drive if=scsi,media=cdrom: warning: bus=0,unit=0 is deprecated with this machine type +(qemu) warning: qemu-system-x86_64: -drive if=scsi,media=cdrom: bus=0,unit=0 is deprecated with this machine type Personally, I would expect the error location or at least the program name to come first even for warnings. Kevin