From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTSgM-0003DA-4W for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTSgI-0001wX-Vp for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:48:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39184) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dTSgI-0001wI-Ow for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:48:22 -0400 From: Markus Armbruster References: <0a1d5638543965d532284bdc6fce391cf9f509d0.1499381754.git.alistair.francis@xilinx.com> Date: Fri, 07 Jul 2017 14:48:12 +0200 In-Reply-To: <0a1d5638543965d532284bdc6fce391cf9f509d0.1499381754.git.alistair.francis@xilinx.com> (Alistair Francis's message of "Thu, 6 Jul 2017 16:49:44 -0700") Message-ID: <8737a8za43.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v1 3/6] Convert error_report() to warn_report() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alistair Francis Cc: qemu-devel@nongnu.org, Peter Maydell , Cornelia Huck , Stefan Hajnoczi , "Michael S. Tsirkin" , Jeff Cody , Alexander Graf , Gerd Hoffmann , Eduardo Habkost , Rob Herring , Josh Durgin , Christian Borntraeger , Marcel Apfelbaum , David Gibson , Jason Wang , philippe@mathieu-daude.net, Peter Lieven , Greg Kurz , Peter Chubb , Ronnie Sahlberg , Igor Mammedov , alistair23@gmail.com, Richard Henderson , Kevin Wolf , Peter Crosthwaite , Marcelo Tosatti , "Richard W.M. Jones" , Max Reitz , "Aneesh Kumar K.V" , Paolo Bonzini Alistair Francis writes: > Convert all uses of error_report("[Ww]arning:"... to use warn_report() > instead. This helps standardise on a single method of printing warnings > to the user. > > All of the warnings were found using this regex expression: > error_report.*[Ww]arning: > and replaced with: > warn_report(" > > Signed-off-by: Alistair Francis > Suggested-by: Thomas Huth Doesn't compile. Moreover, you obviously changed more than just lines matching the regexp you quoted. To ease review, I please split the patch as follows: * First patch: sed -i 's/error_report("warning: \([^"]*"\)/warn_report("\1/i' ... plus indentation fixups. Put exact sed command (or whatever else you use) in the commit message. * Second patch with additional conversions. This way the bulk of the changes is mechanical, and the non-mechanical changes don't get lost in the sea of mechanical ones.