From patchwork Wed Dec 20 17:24:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 10126207 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 49BC760245 for ; Wed, 20 Dec 2017 18:07:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40F312984D for ; Wed, 20 Dec 2017 18:07:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35B0D2985A; Wed, 20 Dec 2017 18:07:12 +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 5F1C22984D for ; Wed, 20 Dec 2017 18:07:11 +0000 (UTC) Received: from localhost ([::1]:33107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRilq-00078E-AH for patchwork-qemu-devel@patchwork.kernel.org; Wed, 20 Dec 2017 13:07:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRiAn-0007aV-5u 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-0006u4-47 for qemu-devel@nongnu.org; Wed, 20 Dec 2017 12:28:53 -0500 Received: from mail-dm3nam03on0083.outbound.protection.outlook.com ([104.47.41.83]:44736 helo=NAM03-DM3-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 1eRiAf-0006gW-JC; Wed, 20 Dec 2017 12:28:45 -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=OIwbCItGvdkT2vp6PwPlMywC8EgCKqPk3q474EdKUZU=; b=5MchBQcyXf/CVxib0+luJQYFLqFFmBPhBQg77y89pMcCLRZ11+HL8R7XKt8il7DImmK4o3vELL8X3Jcu4k0RtE4qDgo5C2JmSYpZO3nXkHli7zdMXQnHTEGsD5DL1gKTFe0Kz5KUZa/bS09EnlUJQjtrLtV8wnYcU1dLO5EGuag= Received: from SN4PR0201CA0072.namprd02.prod.outlook.com (10.171.31.162) by BN6PR02MB3380.namprd02.prod.outlook.com (10.161.153.11) 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 BL2NAM02FT029.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::208) by SN4PR0201CA0072.outlook.office365.com (2603:10b6:803:20::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.323.15 via Frontend Transport; Wed, 20 Dec 2017 17:28:43 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; denx.de; dkim=none (message not signed) header.d=none;denx.de; 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 BL2NAM02FT029.mail.protection.outlook.com (10.152.77.100) 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]:49829 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1eRiAb-0003sM-SN; 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-Nk; Wed, 20 Dec 2017 09:28:41 -0800 Received: from xsj-pvapsmtp01 (smtp3.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vBKHSYZw019835; Wed, 20 Dec 2017 09:28:34 -0800 Received: from [172.19.2.220] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eRiAU-0003jA-8e; Wed, 20 Dec 2017 09:28:34 -0800 From: Alistair Francis To: , Date: Wed, 20 Dec 2017 09:24:18 -0800 Message-ID: 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)(346002)(396003)(39380400002)(39860400002)(376002)(2980300002)(438002)(189003)(199004)(2906002)(63266004)(2870700001)(118296001)(478600001)(356003)(8676002)(76176011)(7696005)(305945005)(23676004)(81156014)(47776003)(59450400001)(36386004)(36756003)(106466001)(2950100002)(6666003)(77096006)(5660300001)(5820100001)(110136005)(4326008)(8936002)(54906003)(39060400002)(81166006)(50226002)(106002)(50466002)(9786002)(316002)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR02MB3380; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT029; 1:ML7xDXpRpxSqBhwJW+9P5QfhxaKugsc9kEnuwLUS2hcWSC9Lb6piMXVKyyJc2qL2aaUZaB4slwDRkDdibz6fh5YBzOFVwXvDxvzsw3T3emcguRcRi9nXEanhRL4zGTaY X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6bfe5ec-4ba1-4ada-b2f4-08d547cf1db9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:BN6PR02MB3380; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3380; 3:NX7H/ro9xI3+IYd59EL3YKkDrjJURvtUzlzcxsuFc9QaYIvMpBD5uflShqJuzmi7fkuFNOLRagCKH+Sb5aG35d8CNXuJpS+NRm7OdzUToDJg0w+YaBGxwTxC+RIFRCnAK0hPgmJQPHPxSxTfSvI/FCod6YDMja4k5hCZhSbfwBIJpuMiViLE7PbV2Y7AL/1Yqpno4B9VSRZNOzSvmWqKEK0JRKGBVcTucq+E2vW0RwLdI9m46u9K5RfqE8ubBRPsQCzrqbYjR4bchhrXIBGAGI1i3lDNtAXvxDpqL8x4SftUHcrg2fmtbBgHGlqNHrRl76Iw/e+PqLbZzSxHBzAvzE1I+pIP+ZtImbFyRFx40aE=; 25:ufNoT69oxq6TZqPaKRu3t8EiUYjaN3BbFBlG8/o7YAk0HfnxY1pIcEP5KASv3PIQypuztQrNcCUpV+bO3yLwNfqAIr4MT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oft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93004095)(3231023)(10201501046)(3002001)(6055026)(6041268)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BN6PR02MB3380; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR02MB3380; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB3380; 4:YG004/poyt/4gIs5aLjjO556C4y1G4nwM0a+06vVv5V1bD7fCUqGJVBDYU9TLHuvE78eZzHiiNeOqlGsvX2aoU5nAxJPdTLnbdGTofpHsDuXIddGhOSZfGHzdVdx1BoKs5QkZqtf3n6qenZqSuxDymjQgkhg+aeCDUQ08myxmGTHMXxiM3B1F8XItpUs2UWXwZe4D7QRUEKrDqSaDaHr2BwLyCc6GhtOSkwHQZTlhHr6bsI4ayligBb76ftK4c1Y4udSfnX0SmRmO14j7CLF2bsO1dasumiL/U9SOSJ9QFSZs1Jm+MU4wjNgSDydVmNCB3i9L2hIoM4tti1nvYQ8XQ== X-Forefront-PRVS: 0527DFA348 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR02MB3380; 23:ilAXSAEeSjLAvPrP1TPcOVUYWr+FxHKVPk4xZ4dCP?= =?us-ascii?Q?UyZjMP9BUPLdzHNcO84KdFEb37m5vaz8DdDlrf8Lzh4oRvT5wjTK8mRLVfK+?= =?us-ascii?Q?aRW0sJ2TT58i5CCMSkt/m5nxoM6XblBhegJPGyytb6sxhml20O9S7JtU9XDr?= =?us-ascii?Q?jN/ZCBSKorq5llVKehPHuPaZdCIuWdV0w7tNGLHr5XzjILMd6RhsaXTvveJB?= =?us-ascii?Q?0HFyKC30gL/8lBKrO4zwvCIvIyqPk1rU+5nkVoMMYJn9Mr/6L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9Re/mmolzhoPFe0GutwRESlAwBAiKp3+WInBQSVKsQV2wXLVko59hS/wZFqycqsANEJEXPhwJ2Yjclt+beISZaD6fZU1uuPekTyTJHTpuGZSct3xaAGu3r4Y7cT+DosPo5lfE3VU0nL3vcPyRhoDLDOajQ7ILyzb3p+IvNyGJLYayMrPNVW+3DfMizpWskuwLz4gHoHxz/RWSPdchVp9R4H9XNiCSGehGSxk77xpHBP3sj0M4vSOMsL3JLnhvwhEaGWTZFPSwe+avr9oHAePyf8KsT9aRHMgjxsfdKmPGatpziaiymn+WpYMjKuSs3sab2KMcafN5KNOW/DFLVeYMN4tA=; 5:GWdcI2T1qTsjxIQJ1cKOc/GG1RV2aJ2wZ37XSlliM7Mj8/cJdXFUvgo3uv21aHHI54wYmUddzrozcJXVKOkDMgdciOIQndEIw4eYTihq88f9VRCQKa5HowamcvbV2DrwIqvRTreNRRniYeQQ9jVIL/TsYX6dPjE4ddzwnfMg2TE=; 24:h2qqT0+pAVEqcR++RVBWMq4x+vE3GUYoJ6Y4PF53S11p4DrhNlP/ukDi5MeBoHpUjJyvh+VcIJv30+Ltm79MIOZ0cVlhQ5Uvmw5pZbIyu8E=; 7:CNaBnwAJp43hn2eaCeiTdI7+SdkddJvG9PgZ4WIeJpC+p5G6NkQLhoAC6e1lnJmAoJvd/6EswvlrcrRcu8xcouc18T4Tr0eA18OdE8cyEvKuDdH2nA9CYQqv4cJclWcW880Qw1CqF0OhjM7wSPZfLHZQigM9rLGzwL4DALdaRjEvZ1OLz6VKlgk3muPPMyS7U6IcSUoc2GxBqq2Wy+lr8CKTgRaikXUYuKo9ZWnmbtnWFdAhGRq4BQtuLL00pZgn SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 17:28:42.3429 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e6bfe5ec-4ba1-4ada-b2f4-08d547cf1db9 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: BN6PR02MB3380 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.41.83 Subject: [Qemu-devel] [PATCH v6 16/29] hw/nios2: 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: Marek Vasut , alistair23@gmail.com, Chris Wulff , 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: Chris Wulff Cc: Marek Vasut Reviewed-by: Philippe Mathieu-Daudé --- V2: - Split hw patch into individual directories hw/nios2/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/nios2/boot.c b/hw/nios2/boot.c index 94f436e7fb..2de9c06695 100644 --- a/hw/nios2/boot.c +++ b/hw/nios2/boot.c @@ -95,7 +95,7 @@ static int nios2_load_dtb(struct nios2_boot_info bi, const uint32_t ramsize, r = qemu_fdt_setprop_string(fdt, "/chosen", "bootargs", kernel_cmdline); if (r < 0) { - fprintf(stderr, "couldn't set /chosen/bootargs\n"); + error_report("couldn't set /chosen/bootargs"); } }