Message ID | 395ee77fc574e6e75ed7e4eef8758a25370a208c.1510181732.git.alistair.francis@xilinx.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="5ZjzayUR"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yXMr54WZYz9s4q for <incoming@patchwork.ozlabs.org>; Thu, 9 Nov 2017 10:26:29 +1100 (AEDT) Received: from localhost ([::1]:34435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1eCZjm-0002ur-FX for incoming@patchwork.ozlabs.org; Wed, 08 Nov 2017 18:26:26 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1eCZM2-00006H-OZ for qemu-devel@nongnu.org; Wed, 08 Nov 2017 18:01:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1eCZLz-0003Pn-Kc for qemu-devel@nongnu.org; Wed, 08 Nov 2017 18:01:54 -0500 Received: from mail-sn1nam02on0063.outbound.protection.outlook.com ([104.47.36.63]:33385 helo=NAM02-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1eCZLz-0003PZ-CY for qemu-devel@nongnu.org; Wed, 08 Nov 2017 18:01:51 -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=NiF/S2xGh6wKn3a0JKKboX32Wjj+Xb7a+4Tr6TJnzUE=; b=5ZjzayURyl3q/7HFrlMODg03JMuAc34xjSV4q4VdtGtesuPNi61TMG8Qismr2+mCp+PnwUTSTIoXedUB5bWGzA9akzbmn/6DLS6sZYOxQsOnp8gpGp04jOoO+CftfCPDHsIQBNhUeV/yKiZsU2U1wjA3zZleesw1+D7J6cRHQLI= Received: from SN4PR0201CA0013.namprd02.prod.outlook.com (10.161.238.151) by DM5PR02MB3385.namprd02.prod.outlook.com (10.164.152.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Wed, 8 Nov 2017 23:01:48 +0000 Received: from SN1NAM02FT033.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::208) by SN4PR0201CA0013.outlook.office365.com (2603:10b6:803:2b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.218.12 via Frontend Transport; Wed, 8 Nov 2017 23:01:47 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; walle.cc; dkim=none (message not signed) header.d=none;walle.cc; 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 SN1NAM02FT033.mail.protection.outlook.com (10.152.72.133) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.197.9 via Frontend Transport; Wed, 8 Nov 2017 23:01:46 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:35091 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1eCZLu-0003y0-2Q; Wed, 08 Nov 2017 15:01:46 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1eCZLt-0002si-UQ; Wed, 08 Nov 2017 15:01:45 -0800 Received: from xsj-pvapsmtp01 (maildrop.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vA8N1WGm009701; Wed, 8 Nov 2017 15:01:32 -0800 Received: from [172.19.2.220] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1eCZLg-0002ox-IB; Wed, 08 Nov 2017 15:01:32 -0800 From: Alistair Francis <alistair.francis@xilinx.com> To: <qemu-devel@nongnu.org> Date: Wed, 8 Nov 2017 14:57:33 -0800 Message-ID: <395ee77fc574e6e75ed7e4eef8758a25370a208c.1510181732.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <cover.1510181732.git.alistair.francis@xilinx.com> References: <cover.1510181732.git.alistair.francis@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23450.000 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)(6009001)(346002)(376002)(39860400002)(2980300002)(438002)(199003)(189002)(2870700001)(6916009)(23676003)(4326008)(478600001)(63266004)(54906003)(106002)(47776003)(316002)(50466002)(2906002)(8676002)(2351001)(106466001)(189998001)(118296001)(9786002)(36386004)(50226002)(33646002)(5820100001)(2950100002)(5660300001)(36756003)(81166006)(8936002)(76176999)(81156014)(305945005)(50986999)(77096006)(39060400002)(356003)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB3385; 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; SN1NAM02FT033; 1:dS9cVY3JDWGl/auVahvVmzEjJO1DrOa6657oOCd1RJ+3uSABoEiBrOeay3UZ/Atm4brZmspdxkE0lAGDmVRGAoNwmWq2LIfuVGqSmUz9oMhxhwvNKOiwPn7E2X5ILpCb X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f8ac893-d36a-4d56-f051-08d526fcb026 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:DM5PR02MB3385; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3385; 3:/viz0sjlJ7Xl1CIkzZUt0Tz3oXfDGRWlpxTosu3KcSQNUOMDSXWNu+VYnTeVOUaJwxZNco6d6q0if9hncjmBkod3/eA2jWJMhgNmItvomA6P0kT+4C2/ZnDW3e153+qxEvZsX34Ifm6crlgwcL/CZhm73VrGhXkjqg5nZ8ncjCmzSXcVJlA13H1fCvw53XWpmA18kAsyfHPwKpAyBZpQ91FTZ2CHnvKqvjLu5Je3I8C7cqFgtRFxIWjLTjKFnYnEfPlaA2MHj/pz4sd/y11oKmxc6iHqIDLzdjEsQ2AEGqe0slWat9T1YMl61fcESFEWZ5WP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pXnIQ4Gf+qY7q2Uls5NM8zXfD8CgJwVh5/WpfKuGHCKhmW7fQua4kexwAzOSgKjc/fWU7V6OmMo2ktoSfd/gUFY2H5jH31mXVq4nwCOxmLpeakwqyQY013yX+gCR9 X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(192813158149592); X-Microsoft-Antispam-PRVS: <DM5PR02MB33851C798AF23BE5C9F9E84EDC560@DM5PR02MB3385.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93004095)(100000703101)(100105400095)(3231021)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR02MB3385; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR02MB3385; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3385; 4:Y6npY6LqiiL+lqssdwQm/jT6izfaE6/J0ZMLZhvhFTc3zuXA37S7sOqRaa/kPSw6cF/q43V5f0ZVQXFMVkKpMjFuhV2xEvbvqzjDPWpT9T9ZT0SGwLBC90AU/hGNilJBlvbyaXTpZ5nYJ6xDUng03a6YaSRMlq6db16V2dWf0GABR0cDd10VAIxrVSGc8y57xuEy9ZPbyDZcPY9LUWcflSc2aU/Clkt5wAmKYkdVYrzOMSH/cXZxBrqlwRSMkQWIKzLAn6P3PwehwjjhLqa9sEcuWnTbsitJBjcSgodCcEknEHmpBqEusv94VZtMvTS8AI4fTB8UB5RLlkuxqWJH+w== X-Forefront-PRVS: 0485417665 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR02MB3385; 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microsoft-Exchange-Diagnostics: 1; DM5PR02MB3385; 6:2OAmAkZ4t6pfRXra4gB1CA923cTFP8NqEYzQT3x7aNbO9VuT1CMUJ1bZ2Hxbmw0CtyBIan3btzwzLEpDuvCi+QQbJZtJWiMxsZsTzFUf6auxz6/p65+pom1BwtzVgHOQqDh++JlkBPl4fOEp0kJJbtT+ykWHo1iySTcgjTu9pa4fqJpN4sIpZ//6eKJHL8gB/w0pntPSyYdLCEB32txgMlTiu/dtHoxB2WFWb48qan0YnAdxnn2p/tdNTGWHCGqxO0URR3x7dsPahH2kyRadjXrw0MUufvCflYTMVa8/3dtjo+dAN7Vb9pNZ2H2MvnjpAXaP3hWIoYJryxPwfuFLRLfzcYzKfG7xC6/WMLoic4o=; 5:aYQ7GII5/leHv9WbllnW+8L9Rlw1xOndh4HTu/CkNj7zZO+Zqd9rRBQ9vOixKApyYHr8C38BBYQt8MaZa9kjV7GWPznLzVSDvZtgmB85V6puFkGjVVvw9emwBdPHeWdktK7/mrq9tRl1xdY/EfmgtLQkoWDchYDz+kTpzb3CNdg=; 24:0U3PrZHvZYQdC10dHSG38JA/Z5rG+agaH3ISziJvl1NjWwu+3wrPA/LenPHP+5sosvx9qBywfczQYBjrGbiYW6WzHw9NBTxk42uoyYGnxyo=; 7:H9egwOSBPUxApbgXofWQ34ecJGAFA2jRFRGFPzd40e0BLKYTYj2tTFtK87IGDiGjWYHFkwD+qA5bJFurzjJOTP8jr+lqcaB9CMaqAREFa0r9PTj8uNweiV7VOc14sgHZc+NLBWK8pnlQ9Uy/wNvb27413XCkPs7b7GR+9NGjFlOd74PUgjb91bW9cZ2fFMLffK4unMHCRF2TOz7mpqZOKXfrAVkV4n44M5QN/phirIAEQlo2yxp0ksU+1dRjF2+Z SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2017 23:01:46.9092 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f8ac893-d36a-4d56-f051-08d526fcb026 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: DM5PR02MB3385 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.36.63 Subject: [Qemu-devel] [PATCH v4 21/45] hw/lm32: Replace fprintf(stderr, "*\n" with error_report() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: alistair23@gmail.com, Michael Walle <michael@walle.cc>, armbru@redhat.com, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
Remove some of the fprintf(stderr, "*
|
expand
|
diff --git a/hw/lm32/lm32_boards.c b/hw/lm32/lm32_boards.c index 002d638edd..527bcc229c 100644 --- a/hw/lm32/lm32_boards.c +++ b/hw/lm32/lm32_boards.c @@ -18,6 +18,7 @@ */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "hw/sysbus.h" @@ -148,8 +149,7 @@ static void lm32_evr_init(MachineState *machine) } if (kernel_size < 0) { - fprintf(stderr, "qemu: could not load kernel '%s'\n", - kernel_filename); + error_report("could not load kernel '%s'", kernel_filename); exit(1); } } @@ -242,8 +242,7 @@ static void lm32_uclinux_init(MachineState *machine) } if (kernel_size < 0) { - fprintf(stderr, "qemu: could not load kernel '%s'\n", - kernel_filename); + error_report("could not load kernel '%s'", kernel_filename); exit(1); } } diff --git a/hw/lm32/milkymist.c b/hw/lm32/milkymist.c index d4e765f2eb..85d64fe58d 100644 --- a/hw/lm32/milkymist.c +++ b/hw/lm32/milkymist.c @@ -18,6 +18,7 @@ */ #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qemu-common.h" #include "cpu.h" #include "hw/sysbus.h" @@ -145,8 +146,7 @@ milkymist_init(MachineState *machine) /* if no kernel is given no valid bios rom is a fatal error */ if (!kernel_filename && !dinfo && !bios_filename && !qtest_enabled()) { - fprintf(stderr, "qemu: could not load Milkymist One bios '%s'\n", - bios_name); + error_report("could not load Milkymist One bios '%s'", bios_name); exit(1); } g_free(bios_filename); @@ -184,8 +184,7 @@ milkymist_init(MachineState *machine) } if (kernel_size < 0) { - fprintf(stderr, "qemu: could not load kernel '%s'\n", - kernel_filename); + error_report("could not load kernel '%s'", kernel_filename); exit(1); } }