Message ID | 3a47068b0561596283383c38e6e1188b1d6e7d2f.1508390588.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="o66GDYIT"; 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 3yHvxZ1g4wz9tX7 for <incoming@patchwork.ozlabs.org>; Fri, 20 Oct 2017 03:48:02 +1100 (AEDT) Received: from localhost ([::1]:50202 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 1e5DzE-0002Dv-6v for incoming@patchwork.ozlabs.org; Thu, 19 Oct 2017 12:48:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1e5DZj-0005WW-6P for qemu-devel@nongnu.org; Thu, 19 Oct 2017 12:21:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1e5DZg-0001xf-0A for qemu-devel@nongnu.org; Thu, 19 Oct 2017 12:21:39 -0400 Received: from mail-dm3nam03on0056.outbound.protection.outlook.com ([104.47.41.56]:7679 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 <alistai@xilinx.com>) id 1e5DZf-0001x2-Oj for qemu-devel@nongnu.org; Thu, 19 Oct 2017 12:21:35 -0400 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=eR+JmdtQfO3nbH54EsidxXp4kywW4mlEVDtb+GeS4F0=; b=o66GDYITOeacE8Yaul/7FmcWZ+ziVV5/uTp3qAu0EOYevgtckbDB67o0ygmBJXO8wMZrNy6arC714eFtg2KlKI9zLIo06osfDrRBDeCMrxx7KIrbs9wnOJ9WweYb5K6hCUJ4x5ldimidktttws9pZQiovWzBeqemcjSzOQ8yGrM= Received: from BN6PR02CA0103.namprd02.prod.outlook.com (2603:10b6:405:60::44) by DM2PR02MB1340.namprd02.prod.outlook.com (2a01:111:e400:50c8::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 19 Oct 2017 16:21:33 +0000 Received: from CY1NAM02FT019.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::202) by BN6PR02CA0103.outlook.office365.com (2603:10b6:405:60::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Thu, 19 Oct 2017 16:21:33 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.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 CY1NAM02FT019.mail.protection.outlook.com (10.152.75.177) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.77.10 via Frontend Transport; Thu, 19 Oct 2017 16:21:32 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:38633 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1e5DZb-0007xT-Uj; Thu, 19 Oct 2017 09:21:31 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1e5DZb-00037b-Ra; Thu, 19 Oct 2017 09:21:31 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v9JGLUZp006845; Thu, 19 Oct 2017 09:21:30 -0700 Received: from [172.19.2.220] (helo=localhost.localdomain) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <alistair.francis@xilinx.com>) id 1e5DZZ-00037K-VZ; Thu, 19 Oct 2017 09:21:30 -0700 From: Alistair Francis <alistair.francis@xilinx.com> To: <qemu-devel@nongnu.org> Date: Thu, 19 Oct 2017 09:17:37 -0700 Message-ID: <3a47068b0561596283383c38e6e1188b1d6e7d2f.1508390588.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <cover.1508390588.git.alistair.francis@xilinx.com> References: <cover.1508390588.git.alistair.francis@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23404.005 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)(39860400002)(346002)(376002)(2980300002)(438002)(189002)(199003)(2950100002)(81156014)(9786002)(50226002)(47776003)(50986999)(478600001)(76176999)(305945005)(4326008)(8676002)(2906002)(8936002)(33646002)(2351001)(81166006)(5003940100001)(39060400002)(77096006)(16586007)(36756003)(316002)(356003)(48376002)(5660300001)(50466002)(6916009)(36386004)(118296001)(54906003)(106002)(106466001)(189998001)(63266004)(21314002)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB1340; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT019; 1:Hl/3h610a0qoFIglZxZpiA4NYBuoUm0x25I75AuP+WX+zBGWgV/3pWDcTkVjPU86LAXNFBcibJdMOgv/HLa1AIDF2oBd5hXVkm0gX4pFR0GvsVuns3KgyjpOdIdMFkgQ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a113eb79-64fa-4f10-7b5b-08d5170d7636 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(8251501002)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR02MB1340; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1340; 3:EAnRWc/Qgw2W+RxpIb998ivUSX2YpsrfK43d37N0Yv/hLMvftciGAl4O345OVhmNHyhil1k7ifGG7ktWNXP7pgsRwJxA+cVB7lKoKZSWxOPemAOi07X9Ot+/q0RjrwpRjewTuxOjXXCXHnScR334GI4qkE2cU9p2OwE5RQljFsOHYxeKrWF1YEd30sUmLllzzynAmQAldLkvcirL0by8+hrK0GSd0PumOEw0UXdWSkM9OcbvP0npgW5qc8ffN8Ps/B/w9VqRBM8iYSt2rD0+ORDOqjZxuhcuozlY4ezN1eSmto4QVcMECDmrjgfSsYTy5ubJpihZT911oqnjtFtoDFIDb7vYGozc11NkT6+yDV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1Bmv55m19TsFYf6Hi0r091Z/7hH8RqUrO7VcmLDvAy1RuQ9DIZo5IVQerbKT19mzKevG+IRHQ12y3gDZ+4cSwuIVx5qTL75lUjD8 X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(192813158149592); X-Microsoft-Antispam-PRVS: <DM2PR02MB13402D6A41C00F84904A8C97DC420@DM2PR02MB1340.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93004095)(6055026)(6041248)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR02MB1340; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR02MB1340; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB1340; 4:Gkjm9CL1KSvNRd+0cKsPr+MAYA+alS/g9sNXonWT10IDq1/g3lqp0VnRlSgSevEQW6Y6jw5EiuahzEGP7jRjtJ8IJiF96EsCyx0OeDmdrJTNOZKc0rXzkynTERdRtWSeDQ18KxDxgJFW8vMxuv6hfcDIpQUb3nySzXWdb14LWXZmTfkLfThsQOsFl52meScfauNhHWDIdwjIA4kFFPeAuWZxEzJAQ5yF8SURjqKej2dWMN8BjYLMNlZWRA9skY79u4/iae8RmMP1s+bnwMoUKu/TZv8sJ9eRHZAPb7ntzBfQoSG5B2CW7dQk/TrA6nY+5dySfYIWxo6R4w4RDLhi5g== X-Forefront-PRVS: 0465429B7F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR02MB1340; 23:awx8rYMpG9htAi8T6hp1NYuZcN7QXpr/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R02MB1340; 6:d/vko3HvBRYwAbvuAMEnDKxLcyIkvIq/OgTtXp/Wcli8DSdZu+oYNhh/LOUv2LEaSr6rsZJdH0PKkjD3H0kv/UphqFbtcfdDsxf04HVLuolUAcxx7zM3nIhv1ECpwBQSJ3uMkyrYxKi7Q1MxhLGC9e1eVuDe+sWowSiNAwoF1ZIn+SwZHtYAqhloBWr+Rcc/jvEMYs8iFzbIGuNX153Ing8/eEbBa1DgPkofYjFBH04+YwN4ysw0buH189j6xSYTiHf977XtINfbt9rndi8PfSm9fEt9+sFTb1lkXZj5eoMaBe/5VfP0FlURDfsRt9uNYKNxNH69wN/QlvxqHbOLiQ==; 5:DVZRkDso12wmC88RpR0GykGd2l7dIUfULiryGT2YDSl9QSx5gvPUJSIzI3edh9bt3oej1K4v1C0u1YIMFCsdyLjWH7Cxfx2VNAQPV3FiuvCM/9WxmG5G/4nTDhZGxf6o7Mnh1saW9RU/o/Axp9L7Bg==; 24:9A99Opfmq64G+TR5/FE9hhMFk8PRbN/S9LgG5jkcAONeIcJfl9cVc/HG5Pk2xGpdXIcqsUO43ux3Eg+QMKrnXQUNLb5RK6VP/Ur0oCnjGoo=; 7:C5cXSrebLZPXd02jB0oj/vYlNyIF3P9OdX/uucpNBMZwlkhlHplKGpflG5i+w6H4BhZu8NSfRlbrE+w4g06Mkr+A6NlOeeI2v2kVXmB3pRuTC0yrvXvxUP7PxvGL+RPxWwBxFYLBwwTS87oR+YQbXS2Vgx9oXpGE/w4QRTO4SZ65fqYcPyD0XRu6q7QOHVbsuA6nRRuXjLIdyCKowbJ/Uzk+c9UWuUr+FFrBfLE14MU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2017 16:21:32.5120 (UTC) 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: DM2PR02MB1340 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.41.56 Subject: [Qemu-devel] [PATCH v3 32/46] hw/s390x: 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, 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
|
On 19.10.2017 18:17, Alistair Francis wrote: > 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. [...] > Some lines where then manually tweaked to pass checkpatch. > > One fprintf(stderr, was manually converted to a > qemu_log_mask(LOG_GUEST_ERROR, > > Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> > --- > V3: > - Use a qemu_log_mask(LOG_GUEST_ERROR, > V2: > - Split hw patch into individual directories > > hw/s390x/virtio-ccw.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c > index 085f17f871..1c6ea916b8 100644 > --- a/hw/s390x/virtio-ccw.c > +++ b/hw/s390x/virtio-ccw.c > @@ -426,8 +426,9 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) > * passes us zeroes for those we don't support. > */ > if (features.features) { > - fprintf(stderr, "Guest bug: features[%i]=%x (expected 0)\n", > - features.index, features.features); > + qemu_log_mask(LOG_GUEST_ERROR, > + "Guest bug: features[%i]=%x (expected 0)", > + features.index, features.features); > /* XXX: do a unit check here? */ > } > } > Reviewed-by: Thomas Huth <thuth@redhat.com>
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index 085f17f871..1c6ea916b8 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -426,8 +426,9 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) * passes us zeroes for those we don't support. */ if (features.features) { - fprintf(stderr, "Guest bug: features[%i]=%x (expected 0)\n", - features.index, features.features); + qemu_log_mask(LOG_GUEST_ERROR, + "Guest bug: features[%i]=%x (expected 0)", + features.index, features.features); /* XXX: do a unit check here? */ } }
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. One fprintf(stderr, was manually converted to a qemu_log_mask(LOG_GUEST_ERROR, Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> --- V3: - Use a qemu_log_mask(LOG_GUEST_ERROR, V2: - Split hw patch into individual directories hw/s390x/virtio-ccw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)