From patchwork Wed Dec 20 17:24:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 10126201 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E766260390 for ; Wed, 20 Dec 2017 18:03:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDB6129513 for ; Wed, 20 Dec 2017 18:03:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D22E429825; Wed, 20 Dec 2017 18:03:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0BC5529513 for ; Wed, 20 Dec 2017 18:03:57 +0000 (UTC) Received: from localhost ([::1]:32876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRiii-000447-Ik for patchwork-qemu-devel@patchwork.kernel.org; Wed, 20 Dec 2017 13:03:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRiAn-0007ab-8D for qemu-devel@nongnu.org; Wed, 20 Dec 2017 12:28:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRiAm-0006ty-3x for qemu-devel@nongnu.org; Wed, 20 Dec 2017 12:28:53 -0500 Received: from mail-by2nam03on0075.outbound.protection.outlook.com ([104.47.42.75]:38951 helo=NAM03-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eRiAh-0006lI-02; Wed, 20 Dec 2017 12:28:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WXbfomMzgUB2dsNmIA+9dHKHGrTJafu1ZAkzBn0NHG8=; b=LPgze2NzN4aUlYj9yZe9Q0H4K3Vo2nOfrrVbDahHcXN7cju4lwuEOkCOgTMzFJX+kiyRRGzvMlA2IGQltw9lOMvkfjXbgIOO6MTvb8fUG/pjieb4kORzw0EMHQ/GrmxIgCzMdpRKCxX+J/9t6AF7UIRKiW3GY4A7dbFP+N38RtA= Received: from BN6PR02CA0082.namprd02.prod.outlook.com (2603:10b6:405:60::23) by DM2PR02MB1338.namprd02.prod.outlook.com (2a01:111:e400:50c8::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Wed, 20 Dec 2017 17:28:43 +0000 Received: from BL2NAM02FT005.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::206) by BN6PR02CA0082.outlook.office365.com (2603:10b6:405:60::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Wed, 20 Dec 2017 17:28:42 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; moxielogic.com; dkim=none (message not signed) header.d=none;moxielogic.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BL2NAM02FT005.mail.protection.outlook.com (10.152.76.252) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Wed, 20 Dec 2017 17:28:42 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:49826 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1eRiAb-0003sH-Oy; Wed, 20 Dec 2017 09:28:41 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1eRiAb-0003kx-M0; Wed, 20 Dec 2017 09:28:41 -0800 Received: from xsj-pvapsmtp01 (xsj-pvapsmtp01.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vBKHSUHQ008386; Wed, 20 Dec 2017 09:28:31 -0800 Received: from [172.19.2.220] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eRiAQ-0003im-PD; Wed, 20 Dec 2017 09:28:30 -0800 From: Alistair Francis To: , Date: Wed, 20 Dec 2017 09:24:12 -0800 Message-ID: <9aa072d1fc7269e42020cd31f4716efd71261187.1513790495.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23540.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(346002)(39380400002)(39860400002)(396003)(2980300002)(438002)(199004)(189003)(47776003)(63266004)(77096006)(356003)(5660300001)(305945005)(118296001)(106466001)(5820100001)(8676002)(36756003)(81156014)(2870700001)(8936002)(2906002)(6666003)(81166006)(2950100002)(9786002)(106002)(39060400002)(4326008)(50226002)(23676004)(7696005)(316002)(36386004)(76176011)(50466002)(54906003)(478600001)(110136005)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB1338; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT005; 1:9DwxgRdihcZbv3PT1/R+TXI8SddcT5E6Xx6YEV4tW/uF5c63YRn2f02NPTPfhQ3RsPNZvG7e4EThOBrMlUl4V2U930pY1t08NLmc5o/e/TPpguU+MrUP24RI6XfDYSRL X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98a7a7ab-7070-4100-152c-08d547cf1df2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:DM2PR02MB1338; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1338; 3:LcuvBT26BzqaLEIT2aFF+dVwzTGnbzoERsOKYcrlKRjHmyRqayrvHV4i1vxmfvrb7ngFVp7dgoOTecKtNboYYYAtKfyNW4Y+nAbFkkEO95w8RFRcRDAUO/ZmgwCk/4/MtyfzMRATJyUziMtGZ5A9w5vtKNhe3QMG0yVE4CCUDh6iaZg0HnhXCR0N4OsmEvuSDvXJtaECgFOGHv0btsLfxpRUP2fyqZFr8946uJpOmYs5hBCbCZ5gO9vrUmUaU4YXLhHgPXtA2GIhZtoBYj+hE17VPoUZ4rba6luQ8yCBYNfrjZsU3AoBQp276I15wRCCqfmpQgyxXT2eyboCFuC4jS47mF+AcqUECe80YkntAGw=; 25:DxpJYaWmg4l5uF1wNqs82tzksjNkLWAkZint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0saAwY7ImC4+g2lOQHNe82Z2ZRoc4ij3+Yokj7jOBXn098WdT8SKjNXtnTBsN0Bmtyyd/rI43PJwyP0 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231023)(93006095)(93004095)(6055026)(6041268)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM2PR02MB1338; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM2PR02MB1338; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1338; 4:AMXtyEx9it/PYKYA8G/UATrUQrdSFs8CaZJG2nBRux8kCzNx1QH2Wc4YtPX3q/E+QJnUVXRnwAtIlnxWiUIgTrrkRHWQcVW7npXZ4ZDtathph+CpOeHaPI+Dd6HbdSpXdW+NuqcfTzcWoJTdFSeypGG9EnS2iNKFDN4Y5M/28fz2pZ9JEqAvxFEuECCnnZRFcOw9BYqYgCX+buBNl5nwaDb8Lh4YqKDfndN10FoIyuenhGZpxOy5XPKovouA8l0SpasdJzLLHOAYW3H+p7DOF8VU0IW1/TRDEWFPy6RcctOQZuccjV8UYFW3WBzCZhuedlMK1ZPRtcZ+j0kuMkz/8A== X-Forefront-PRVS: 0527DFA348 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR02MB1338; 23:Jt2VehMlG/1gLGS8/1Eo/qjnahTzZc14LHCyXSWZZ?= =?us-ascii?Q?ZsdVuQtwr8PGKH1eoSYyocpiBwHszinJlGtHOJMdY05soQrKuas4nBYWzjxw?= =?us-ascii?Q?Ehr27sKj5U1wzcVvNM7Ws9GLcg4eczLJ24WhFcbPQfVzUyppmLjGi23xDoNF?= =?us-ascii?Q?WtKFJAV4sM78RTBbtLT9jlKnK9uprbw1q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Hek=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1338; 6:oHUUG5kA9jTi2T63HdLGrWQkkq7iK7xypxNdSfRDYteVGaobp6SBx5JfIAeVGejbvsSl6Dj++cbpN+1iorZskAGH8cEX2stEJJvwt0LVelqh+0Vy7LCT51RAQ8GhocpTimbQ6gj4bq5/gqLjiU0X2Zq6R6T/XafPwdNpIi7bcQ2KFHx1EzqJfQvKyWPrBnqjLkCpQy0kA9+FpPP7auL+U/zEHZj3EPOM04AFKjqxAq5LdjW8VUFFiPmJS9iAH7h/ja5ldxbM0VJkGYryHSUndlEqgWEDoJq1eBza2as9uj6DKI4rhpu1VrXi41S/AH9coHb6OBJiOKj76qOKfRkPO5QMKTI+zG6Xm8ba5dJXokM=; 5:IeQBEZ/XGsbpgScV5exeY9ILmaDqo4VTiqrxK/MlFfhXx/RznrjZkS45UXF7gJlwJlYCEcqBeH7R6KtySzXvKTPBP03laFYHElt2PNr6N+yJJjJv1ULM8NbmUvYCgLAN66xZC+L1lSGOhn+EXpF8+S9U44eMlWYuivVbcPCVNYw=; 24:xFmp/gpK9cbz2+KhKXEJQPqqFR5v1dg4QaEKxHuRrv38q6BqWJuUzTX4QaeC5s9MuWnfFaGuS9W4OpUOEqiePX6p332XXw4SH5KQd7t9PbQ=; 7:6i8jwaWiuj8A7q5YwitLHwLsjpGeJUSBofCARwgaFQzf7qhlMFaPjCghSY1VSNQZnOFdl55KE9vlYPfeSAPgHSbtWVj2DxKNE2iKOYOICKECjjpGt7VDTpcjYB1Thzoym0Vza1fSG/q35sdDp2GKVw3qcvl3JBy/pvs6D5Ku8zPrp+Q84yqpWzfXqiy1/qcAbhw9WKXYPIh/XxWokXjHdT7R+Vx0HkYFW9bx+dsmOWlS0pZilXXs0MbvAQ4eGHMW SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 17:28:42.6343 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98a7a7ab-7070-4100-152c-08d547cf1df2 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR02MB1338 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.42.75 Subject: [Qemu-devel] [PATCH v6 15/29] hw/moxie: Replace fprintf(stderr, "*\n" with error_report() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alistair23@gmail.com, Anthony Green , armbru@redhat.com, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + Some lines where then manually tweaked to pass checkpatch. Signed-off-by: Alistair Francis Cc: Anthony Green Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- V2: - Split hw patch into individual directories hw/moxie/moxiesim.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/moxie/moxiesim.c b/hw/moxie/moxiesim.c index 3c3ba9d8c5..4f8e84a149 100644 --- a/hw/moxie/moxiesim.c +++ b/hw/moxie/moxiesim.c @@ -25,6 +25,7 @@ * THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu-common.h" #include "cpu.h" @@ -60,8 +61,8 @@ static void load_kernel(MoxieCPU *cpu, LoaderParams *loader_params) 0, 0); if (kernel_size <= 0) { - fprintf(stderr, "qemu: could not load kernel '%s'\n", - loader_params->kernel_filename); + error_report("could not load kernel '%s'", + loader_params->kernel_filename); exit(1); } @@ -74,9 +75,8 @@ static void load_kernel(MoxieCPU *cpu, LoaderParams *loader_params) initrd_offset = (kernel_high + ~TARGET_PAGE_MASK) & TARGET_PAGE_MASK; if (initrd_offset + initrd_size > loader_params->ram_size) { - fprintf(stderr, - "qemu: memory too small for initial ram disk '%s'\n", - loader_params->initrd_filename); + error_report("memory too small for initial ram disk '%s'", + loader_params->initrd_filename); exit(1); } initrd_size = load_image_targphys(loader_params->initrd_filename, @@ -84,8 +84,8 @@ static void load_kernel(MoxieCPU *cpu, LoaderParams *loader_params) ram_size); } if (initrd_size == (target_ulong)-1) { - fprintf(stderr, "qemu: could not load initial ram disk '%s'\n", - loader_params->initrd_filename); + error_report("could not load initial ram disk '%s'", + loader_params->initrd_filename); exit(1); } }