From patchwork Wed Jul 26 16:07:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 9865375 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 1EFBB6038C for ; Wed, 26 Jul 2017 16:12:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0309B28790 for ; Wed, 26 Jul 2017 16:12:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB9EF28795; Wed, 26 Jul 2017 16:12:53 +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 6149828790 for ; Wed, 26 Jul 2017 16:12:52 +0000 (UTC) Received: from localhost ([::1]:39077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daOvb-0007XH-JD for patchwork-qemu-devel@patchwork.kernel.org; Wed, 26 Jul 2017 12:12:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daOuH-0007SG-U8 for qemu-devel@nongnu.org; Wed, 26 Jul 2017 12:11:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daOuE-0004Jr-9T for qemu-devel@nongnu.org; Wed, 26 Jul 2017 12:11:29 -0400 Received: from mail-sn1nam02on0042.outbound.protection.outlook.com ([104.47.36.42]:16427 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 ) id 1daOuD-0004Ir-Tw for qemu-devel@nongnu.org; Wed, 26 Jul 2017 12:11:26 -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=wg35/uJPFqOpDdsgXB3A3MHNo3jhhb8SpDkOBxcMUow=; b=yDzF4siWqXQHZeh9uLCw3OwENBV/EjCqfp7GTomLU5dFc9TgA2kwdeuzGB8bLkCODYNS2kC9ozMqG4MoIJ/KFc29oc/DhZEFmglhc7/WXMbFiiw3no3uparf99L2E3Keg33rG2Xf0VLrgy9em1km4+xB39xiolT07z5JjXm9UmY= Received: from BLUPR0201CA0039.namprd02.prod.outlook.com (10.163.116.49) by BY2PR0201MB1591.namprd02.prod.outlook.com (10.163.154.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Wed, 26 Jul 2017 16:11:22 +0000 Received: from CY1NAM02FT045.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::200) by BLUPR0201CA0039.outlook.office365.com (2a01:111:e400:52e7::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10 via Frontend Transport; Wed, 26 Jul 2017 16:11:22 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.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 CY1NAM02FT045.mail.protection.outlook.com (10.152.75.111) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1240.9 via Frontend Transport; Wed, 26 Jul 2017 16:11:21 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:60162 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1daOu8-0007x4-VG; Wed, 26 Jul 2017 09:11:20 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1daOu8-0006G5-Ql; Wed, 26 Jul 2017 09:11:20 -0700 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 v6QGBBUr016424; Wed, 26 Jul 2017 09:11:11 -0700 Received: from [172.19.2.220] (helo=localhost.localdomain) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1daOtz-0006EG-DT; Wed, 26 Jul 2017 09:11:11 -0700 From: Alistair Francis To: Date: Wed, 26 Jul 2017 09:07:57 -0700 Message-ID: <44655faac8ff8a48e1ed7a50ad0ac66bfd70975b.1501084908.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23218.004 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)(39850400002)(39400400002)(39410400002)(39860400002)(39450400003)(39840400002)(2980300002)(438002)(189002)(199003)(38730400002)(189998001)(33646002)(8676002)(39060400002)(50986999)(76176999)(118296001)(9786002)(2351001)(5660300001)(8936002)(81166006)(50226002)(50466002)(54906002)(81156014)(48376002)(5003940100001)(110136004)(36756003)(6916009)(2950100002)(63266004)(36386004)(47776003)(478600001)(356003)(4326008)(6666003)(106466001)(77096006)(626005)(305945005)(2906002)(575784001)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB1591; 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; CY1NAM02FT045; 1:w0QcBulX1YOUxKaoLyQgkqG04k+SVwNUVIPjqujICQttUHcydPnATtM8D6gZbrGEbsY8fzyptx5bOKzVSdqB8rm8/j46nEjxMP/pWe8ENQy3KqAClT71z6gzOOB4sfqtY6qbCOo0ODO2QEBTvkXxXu28GG2VbhUehF5VBJwlOo53m0Hj08R2w7ogWKVXfde1agy1uk1FyZMePDMpa08sQTiWcRXRgJvdLsQFXX1Z5ve3lc+OCYpwW42UiC34ItfNn3JPjOeBdjgOvugULqIgSSbZrkqxoFyagi9CxXepPjOrikINdIsDAMQJlOMGrbecvRRxVntYE4TX+vooI6IwfktuWWxw7TvWUKN6V51gGCp8vOZS/y0Lfunbz9KCh3OVj6vmv6CmEMsvp9r005N+NVPP72E7f07mwT+iyvVohU7VWCEonYp/L0GWf1q/VPq/+PaCUdXSB1krSpnQ3GQvERAeIMVouMnq47xO1mnl1vSzWA7pKIGa64xGGVpdDWAJkk6rZsW+hdyeSEU9LM67f1MMlgIadOXNvffe4sQdfeNDMuX9DVzQYXxptqSssLlMWvb29RbNEu1UkjnRHh0JBPnoyzu9K3kV3LbqM4NoZ2ibq+ROQ6/o+LI43Elf2Z2aqVtwtmTohcAJ4ZFEo0h/ePlH1+5wER9E1lYQf1unQQl8iACWHZdiirYcOesYLQFX+A+2SE29LWvml+Gre3CM2rk2UKUVdXC0UR1xGJByfyIWOOQNp7BlqDk/Aldp49x7nLzrRhx7oStwJ9LD+wgiqiV2geWwJSPXWLlf+f11kx7rWC2W92DxRT05S9m5b4v8jesRmV1GPNic1UN61JF3fHhW3hGgS2n4rIu0xk9o4s3ShbR/OevQscRWPB1JV7M4wNo/DTRRDGApI8oPLIx7Tw== MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 904995e8-12a8-4b95-21b5-08d4d440f4f3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(8251501002)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR0201MB1591; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1591; 3:yJGfc2IPUWAndNThKH8dVIByrj5k/t6F/6diKqY9IAliHXMgUn+h2EPp7n8ajKKaBkAfTqJMzh9hFb6iAoCirWbZlCBspKJr3LaiilNc1vpPJANzNq26putkLAY2VOVfn/0/YvNncYyIX5d+2IxDszN9nt3O0omFUjwdFb1wloZq7L+RKFxgktH4flCx5djMP36Qfz6pxjPAIhpiMvClDRewVC+gIH+Gze8gKsAkJ5uoZeZhkcXo87b1NtUbT3aZJbDz60qMegyfhdYMNF2p7skXJGiTjT6M5SLOb3vuOJ4+b01wWkY1hrSbRa7wkocksTUTykYQDsTtLiwGK0aoEdZvsMMGB57w1D5iVfPXLfK8+CXgd4uWXieFuNWBgK6kg32Qk+IaH8dyudrByzTNr3V1NJT5tU+ZafQv0wj5mZaVoge2RzA7xGF+ZralEpxsRYcJBBLyDRdAEpa+DLSuOM55KKjE6hTjG8qJNr70JDv6iVYigts2uLbguOQ3lPzX6CGcq4OBuHmgX9FqREjxOCBuuyZon2Zynel+6MNDBPbMsQibBOr9BuDk5vrVuLB4HzvbVlVkhRinTTGV3tiUysdnFPon1BWUq4bz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JDLLX5+PD8z2NO1O23uEgH3dd8CmcYK+3+a1mzwz4tF6aDacX5D9hy/TWzIM6xh1Dx8l5ZLpbwGaVbLHDXiMVfIC13YI8MJZG2/jZ0X6HeQAsWFHNP4rl/AS0yMz/Bcv5IvRnY8yWyWcT7CmhlYAwNHoXjkhtkTZsS1X1L1BMO6FKdmH+HgHay5AwUXap00Ew+l8KBV4+hQ8rSQC5VIXxLFWekm5se5wzQklUOQ5gI1IYEVtjyqLrEIzNQuTp6uV9hIj0BHFxcH5/Bq7S+UAfHnOfsfvvLOkRzR9dhi04iTGqq+zamcpoEYM5fiM482xPRrzRTPKrtWCCFNGPqrkVaUiBvzQaQUochm3CJ+VbTkLvNQ1OMj+FqYNQdM9KDJjMrpeXQkZYXbUHhV131tXyNQGSP7OaMqLgE1NvGe3t3FCxwCsQlnMjlBJwCkIo+J5f35c0cloZ76zIqWNnDUlL5U X-Exchange-Antispam-Report-Test: UriScan:(190383065149520)(192813158149592)(70601490899591)(104084551191319)(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(13016025)(5005006)(13018025)(100000703101)(100105400095)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0201MB1591; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0201MB1591; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0201MB1591; 4:+2O6DwvG/1g+Q390aYUCG7kpHGG6RlU5vuoZWjap?= =?us-ascii?Q?HEFkd459KFww1blAlJdI5Z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ii?Q?kK9TC54o6UGZ0kaYJiUFxI5Pw2Ehca012WptpCSoO4U2hJz/YVoRpjOpkYE7?= =?us-ascii?Q?rDXSKQRGcITkiFi9L22KKYQOoltgjzqRl1ZXWor4A80hHkSUrI02ZOJoZSHs?= =?us-ascii?Q?AkwiyE69wf1bJHpmHpurl0jsqhTPFNzLWhhovtu6kLmyzA6Vtjxag7sXBKrT?= =?us-ascii?Q?AAkCFh2/t8oqx7tWjt4xl4yOh20fFklwH4M8OVrux1OaOx4QKwbXrmV0p2T9?= =?us-ascii?Q?jg0CHfwO3ati1kIJ8XazIcOnB+JwVTmjJZX5h/ayXRbdpiOZHz4TpgrizNfD?= =?us-ascii?Q?KkV95vHGL3zJQJMmQ7iICaRwhkxwcVigIPH0Xk6HkJgY2AY4zRpvQVcKkdyo?= =?us-ascii?Q?GJ/4pXYxntkcu+niL11TYWgTDtQKy3WeDE4sINfirWIRweuPxcHSEzZWzcPn?= =?us-ascii?Q?kbeUkQgIHBUeJrJXilpQ4BCiVDc=3D?= X-Forefront-PRVS: 038002787A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0201MB1591; 23:ZUex3MFHM690JDAKkMl8NkiiZF6+Iz3ZmJ8MH6d?= =?us-ascii?Q?RXmr7pL2SJMFXeRY43w+Zchxevr86pSED1P1FNhmcWhASUc67mAqKZZBvO6Q?= =?us-ascii?Q?7e36aBCY7vtPv9jW53yPoMwohZ7xSLIvtHqVHweJf+4oGOCM6WiDoSBJBwLo?= =?us-ascii?Q?JpXPN151X4xNqO79oaaSvGSyxIg7k6NGXR7r1CPCTa2X/r8GxhDyOzHLdU1n?= =?us-ascii?Q?bEwMAB4xAyZAekdR7OZUGVD2cxqQPM4anm+OaL4hvDNmiu4gPXyXXVmQLjHq?= =?us-ascii?Q?CpgvgCbHGWE5gKzfjj583Hd0fZrfcmo+GTy52vreNo0a/1pij2Fmpv3qfGBN?= =?us-ascii?Q?T3Hfm+vO5SqBmjxzSzf225c/0/t+N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x41v32B3DYErcZNzER2QOHVuUs2xNf0aWu52gGVIhuDAefncwHOOr3rSDalKFvVRGgRosZi69jsLHQQWH1gdqFpUpyFGn+W+o03+++oFLbR6gHMb80nLaGrWxUpyX4McV7tJ84AR7RHCbwc3qHKKxTDtSMIAW0AK175lAk7wsLTwcDatXjeSJnbNDlkuvbc70CBlY334MizS/caUNHVmAOdG7j5lRPR6v1lM0JEiQXEm2EGXLjBIVfHs18tHxwRSV01CONgNoQP9aSS7loY+K3+kws+RSlr3NjJ3zDlDcSo8g76C++te3DSKfYLLFav8g+ozLpamKf0WS9OZCpb11AmFtSMQvAVtpPfCKL9ubxwZdofFVEbIPiAqEAQXQnUen9M0/lcvuhUu/+LMyGpJjRSXTSOaDK4Z6e6w3CmuWZ1mtBilkjFrBz3Tp0s7GCNwEpoVKozYkSWfwdPSTW3uXjN70JhagCf2DYpMYo/GWUs42T6Wk9UtVVTlW/IN+1N7C59GlQoyXHSXa3Bh3SKSyqMPWQnpkgJZYjQmWJD3JhOVXKHkT9ekPKUE5l9oYTtzA72CwxjyndsGBBEgWMKQ51LwvwAejjUSFRsnZ0ful7Wo9LMluQS/xU5P4DZnXZ8b18Cf+8APkIFvqAIOQ6xE3kMUca8hZB1O2V5uA/PMTmZsrVSW8ZFX2J2VOty70VuCTzlph5pwjUqcp5eD7Yca64/DMn6Rq1yyMe+DnR68nI= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2017 16:11:21.5215 (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: BY2PR0201MB1591 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.36.42 Subject: [Qemu-devel] [PATCH v1 4/5] Convert multi-line fprintf() to warn_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, 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 Convert all the multi-line uses of fprintf(stderr, "warning:"..."\n"... to use warn_report() instead. This helps standardise on a single method of printing warnings to the user. All of the warnings were changed using these commands: find ./* -type f -exec sed -i \ 'N; {s|fprintf(.*".*warning[,:] \(.*\)\\n"\(.*\));|warn_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N; {s|fprintf(.*".*warning[,:] \(.*\)\\n"\(.*\));|warn_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N; {s|fprintf(.*".*warning[,:] \(.*\)\\n"\(.*\));|warn_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N {s|fprintf(.*".*warning[,:] \(.*\)\\n"\(.*\));|warn_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N {s|fprintf(.*".*warning[,:] \(.*\)\\n"\(.*\));|warn_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N {s|fprintf(.*".*warning[,:] \(.*\)\\n"\(.*\));|warn_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N; {s|fprintf(.*".*warning[,:] \(.*\)\\n"\(.*\));|warn_report("\1"\2);|Ig}' \ {} + Indentation fixed up manually afterwards. Some of the lines were manually edited to reduce the line length to below 80 charecters. Some of the lines with newlines in the middle of the string were also manually edit to avoid checkpatch errrors. The #include lines were manually updated to allow the code to compile. Signed-off-by: Alistair Francis Cc: Paolo Bonzini Cc: Kevin Wolf Cc: Max Reitz Cc: "Michael S. Tsirkin" Cc: Igor Mammedov Cc: Peter Maydell Cc: Stefano Stabellini Cc: Anthony Perard Cc: Richard Henderson Cc: Eduardo Habkost Cc: Aurelien Jarno Cc: Yongbok Kim Cc: Cornelia Huck Cc: Christian Borntraeger Cc: Alexander Graf Cc: Jason Wang Cc: David Gibson Cc: Gerd Hoffmann Acked-by: Cornelia Huck --- I couldn't figure out any nice way (it is possible with some more logic inside the sed apparently) to do this is one command, so I had to use all of the commands above. accel/kvm/kvm-all.c | 7 +++---- block/vvfat.c | 4 ++-- hw/acpi/core.c | 7 +++---- hw/arm/vexpress.c | 4 ++-- hw/i386/xen/xen-mapcache.c | 4 ++-- hw/mips/mips_malta.c | 4 ++-- hw/mips/mips_r4k.c | 7 ++++--- hw/s390x/s390-virtio.c | 16 ++++++++-------- net/hub.c | 9 ++++----- net/net.c | 14 +++++++------- target/i386/cpu.c | 12 ++++++------ target/i386/hax-mem.c | 6 +++--- target/ppc/translate_init.c | 18 +++++++++--------- ui/keymaps.c | 9 +++++---- util/main-loop.c | 6 +++--- 15 files changed, 63 insertions(+), 64 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 46ce479dc3..03e26e5a07 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -1629,10 +1629,9 @@ static int kvm_init(MachineState *ms) while (nc->name) { if (nc->num > soft_vcpus_limit) { - fprintf(stderr, - "Warning: Number of %s cpus requested (%d) exceeds " - "the recommended cpus supported by KVM (%d)\n", - nc->name, nc->num, soft_vcpus_limit); + warn_report("Number of %s cpus requested (%d) exceeds " + "the recommended cpus supported by KVM (%d)", + nc->name, nc->num, soft_vcpus_limit); if (nc->num > hard_vcpus_limit) { fprintf(stderr, "Number of %s cpus requested (%d) exceeds " diff --git a/block/vvfat.c b/block/vvfat.c index d682f0a9dc..04801f3136 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -1227,8 +1227,8 @@ static int vvfat_open(BlockDriverState *bs, QDict *options, int flags, switch (s->fat_type) { case 32: - fprintf(stderr, "Big fat greek warning: FAT32 has not been tested. " - "You are welcome to do so!\n"); + warn_report("FAT32 has not been tested. " + "You are welcome to do so!"); break; case 16: case 12: diff --git a/hw/acpi/core.c b/hw/acpi/core.c index 2a1b79c838..cd0a1d357b 100644 --- a/hw/acpi/core.c +++ b/hw/acpi/core.c @@ -184,10 +184,9 @@ static void acpi_table_install(const char unsigned *blob, size_t bloblen, } if (has_header && le32_to_cpu(ext_hdr->length) != acpi_payload_size) { - fprintf(stderr, - "warning: ACPI table has wrong length, header says " - "%" PRIu32 ", actual size %zu bytes\n", - le32_to_cpu(ext_hdr->length), acpi_payload_size); + warn_report("ACPI table has wrong length, header says " + "%" PRIu32 ", actual size %zu bytes", + le32_to_cpu(ext_hdr->length), acpi_payload_size); } ext_hdr->length = cpu_to_le32(acpi_payload_size); diff --git a/hw/arm/vexpress.c b/hw/arm/vexpress.c index 528c65ddb6..2445eb4408 100644 --- a/hw/arm/vexpress.c +++ b/hw/arm/vexpress.c @@ -491,8 +491,8 @@ static void vexpress_modify_dtb(const struct arm_boot_info *info, void *fdt) /* Not fatal, we just won't provide virtio. This will * happen with older device tree blobs. */ - fprintf(stderr, "QEMU: warning: couldn't find interrupt controller in " - "dtb; will not include virtio-mmio devices in the dtb.\n"); + warn_report("couldn't find interrupt controller in " + "dtb; will not include virtio-mmio devices in the dtb."); } else { int i; const hwaddr *map = daughterboard->motherboard_map; diff --git a/hw/i386/xen/xen-mapcache.c b/hw/i386/xen/xen-mapcache.c index 369c3df8a0..3985a92f02 100644 --- a/hw/i386/xen/xen-mapcache.c +++ b/hw/i386/xen/xen-mapcache.c @@ -125,8 +125,8 @@ void xen_map_cache_init(phys_offset_to_gaddr_t f, void *opaque) rlimit_as.rlim_cur = rlimit_as.rlim_max; if (rlimit_as.rlim_max != RLIM_INFINITY) { - fprintf(stderr, "Warning: QEMU's maximum size of virtual" - " memory is not infinity.\n"); + warn_report("QEMU's maximum size of virtual" + " memory is not infinity."); } if (rlimit_as.rlim_max < MCACHE_MAX_SIZE + NON_MCACHE_MEMORY_SIZE) { mapcache->max_mcache_size = rlimit_as.rlim_max - diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 3487d16f61..1134c81500 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -216,8 +216,8 @@ static void generate_eeprom_spd(uint8_t *eeprom, ram_addr_t ram_size) } if (ram_size) { - fprintf(stderr, "Warning: SPD cannot represent final %dMB" - " of SDRAM\n", (int)ram_size); + warn_report("SPD cannot represent final %dMB" + " of SDRAM", (int)ram_size); } /* fill in SPD memory information */ diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index 690874be2b..c189cdaacc 100644 --- a/hw/mips/mips_r4k.c +++ b/hw/mips/mips_r4k.c @@ -31,6 +31,7 @@ #include "sysemu/block-backend.h" #include "exec/address-spaces.h" #include "sysemu/qtest.h" +#include "qemu/error-report.h" #define MAX_IDE_BUS 2 @@ -251,9 +252,9 @@ void mips_r4k_init(MachineState *machine) fprintf(stderr, "qemu: Error registering flash memory.\n"); } } else if (!qtest_enabled()) { - /* not fatal */ - fprintf(stderr, "qemu: Warning, could not load MIPS bios '%s'\n", - bios_name); + /* not fatal */ + warn_report("could not load MIPS bios '%s'", + bios_name); } g_free(filename); diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390-virtio.c index afa4148e6b..964df517b4 100644 --- a/hw/s390x/s390-virtio.c +++ b/hw/s390x/s390-virtio.c @@ -146,9 +146,9 @@ void gtod_save(QEMUFile *f, void *opaque) r = s390_get_clock(&tod_high, &tod_low); if (r) { - fprintf(stderr, "WARNING: Unable to get guest clock for migration. " - "Error code %d. Guest clock will not be migrated " - "which could cause the guest to hang.\n", r); + warn_report("Unable to get guest clock for migration. " + "Error code %d. Guest clock will not be migrated " + "which could cause the guest to hang.", r); qemu_put_byte(f, S390_TOD_CLOCK_VALUE_MISSING); return; } @@ -165,8 +165,8 @@ int gtod_load(QEMUFile *f, void *opaque, int version_id) int r; if (qemu_get_byte(f) == S390_TOD_CLOCK_VALUE_MISSING) { - fprintf(stderr, "WARNING: Guest clock was not migrated. This could " - "cause the guest to hang.\n"); + warn_report("Guest clock was not migrated. This could " + "cause the guest to hang."); return 0; } @@ -175,9 +175,9 @@ int gtod_load(QEMUFile *f, void *opaque, int version_id) r = s390_set_clock(&tod_high, &tod_low); if (r) { - fprintf(stderr, "WARNING: Unable to set guest clock value. " - "s390_get_clock returned error %d. This could cause " - "the guest to hang.\n", r); + warn_report("Unable to set guest clock value. " + "s390_get_clock returned error %d. This could cause " + "the guest to hang.", r); } return 0; diff --git a/net/hub.c b/net/hub.c index afe941ae7a..745a2168a1 100644 --- a/net/hub.c +++ b/net/hub.c @@ -310,8 +310,8 @@ void net_hub_check_clients(void) QLIST_FOREACH(port, &hub->ports, next) { peer = port->nc.peer; if (!peer) { - fprintf(stderr, "Warning: hub port %s has no peer\n", - port->nc.name); + warn_report("hub port %s has no peer", + port->nc.name); continue; } @@ -334,9 +334,8 @@ void net_hub_check_clients(void) warn_report("vlan %d with no nics", hub->id); } if (has_nic && !has_host_dev) { - fprintf(stderr, - "Warning: vlan %d is not connected to host network\n", - hub->id); + warn_report("vlan %d is not connected to host network", + hub->id); } } } diff --git a/net/net.c b/net/net.c index 0e28099554..45ab2a1a02 100644 --- a/net/net.c +++ b/net/net.c @@ -1481,9 +1481,9 @@ void net_check_clients(void) QTAILQ_FOREACH(nc, &net_clients, next) { if (!nc->peer) { - fprintf(stderr, "Warning: %s %s has no peer\n", - nc->info->type == NET_CLIENT_DRIVER_NIC ? - "nic" : "netdev", nc->name); + warn_report("%s %s has no peer", + nc->info->type == NET_CLIENT_DRIVER_NIC ? + "nic" : "netdev", nc->name); } } @@ -1494,10 +1494,10 @@ void net_check_clients(void) for (i = 0; i < MAX_NICS; i++) { NICInfo *nd = &nd_table[i]; if (nd->used && !nd->instantiated) { - fprintf(stderr, "Warning: requested NIC (%s, model %s) " - "was not created (not supported by this machine?)\n", - nd->name ? nd->name : "anonymous", - nd->model ? nd->model : "unspecified"); + warn_report("requested NIC (%s, model %s) " + "was not created (not supported by this machine?)", + nd->name ? nd->name : "anonymous", + nd->model ? nd->model : "unspecified"); } } } diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 89f5fb7a3f..f6f7555eae 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1710,12 +1710,12 @@ static void report_unavailable_features(FeatureWord w, uint32_t mask) if ((1UL << i) & mask) { const char *reg = get_register_name_32(f->cpuid_reg); assert(reg); - fprintf(stderr, "warning: %s doesn't support requested feature: " - "CPUID.%02XH:%s%s%s [bit %d]\n", - kvm_enabled() ? "host" : "TCG", - f->cpuid_eax, reg, - f->feat_names[i] ? "." : "", - f->feat_names[i] ? f->feat_names[i] : "", i); + warn_report("%s doesn't support requested feature: " + "CPUID.%02XH:%s%s%s [bit %d]", + kvm_enabled() ? "host" : "TCG", + f->cpuid_eax, reg, + f->feat_names[i] ? "." : "", + f->feat_names[i] ? f->feat_names[i] : "", i); } } } diff --git a/target/i386/hax-mem.c b/target/i386/hax-mem.c index af090343f3..756f2dd268 100644 --- a/target/i386/hax-mem.c +++ b/target/i386/hax-mem.c @@ -178,9 +178,9 @@ static void hax_process_section(MemoryRegionSection *section, uint8_t flags) if (!memory_region_is_ram(mr)) { if (memory_region_is_romd(mr)) { /* HAXM kernel module does not support ROMD yet */ - fprintf(stderr, "%s: Warning: Ignoring ROMD region 0x%016" PRIx64 - "->0x%016" PRIx64 "\n", __func__, start_pa, - start_pa + size); + warn_report("Ignoring ROMD region 0x%016" PRIx64 + "->0x%016" PRIx64 "", __func__, start_pa, + start_pa + size); } return; } diff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c index 01723bdfec..a6f02f3c45 100644 --- a/target/ppc/translate_init.c +++ b/target/ppc/translate_init.c @@ -9215,14 +9215,14 @@ static void init_ppc_proc(PowerPCCPU *cpu) env->tlb_per_way = env->nb_tlb / env->nb_ways; } if (env->irq_inputs == NULL) { - fprintf(stderr, "WARNING: no internal IRQ controller registered.\n" - " Attempt QEMU to crash very soon !\n"); + warn_report("no internal IRQ controller registered." + " Attempt QEMU to crash very soon !"); } #endif if (env->check_pow == NULL) { - fprintf(stderr, "WARNING: no power management check handler " - "registered.\n" - " Attempt QEMU to crash very soon !\n"); + warn_report("no power management check handler " + "registered." + " Attempt QEMU to crash very soon !"); } } @@ -9776,10 +9776,10 @@ static int ppc_fixup_cpu(PowerPCCPU *cpu) * tree. */ if ((env->insns_flags & ~PPC_TCG_INSNS) || (env->insns_flags2 & ~PPC_TCG_INSNS2)) { - fprintf(stderr, "Warning: Disabling some instructions which are not " - "emulated by TCG (0x%" PRIx64 ", 0x%" PRIx64 ")\n", - env->insns_flags & ~PPC_TCG_INSNS, - env->insns_flags2 & ~PPC_TCG_INSNS2); + warn_report("Disabling some instructions which are not " + "emulated by TCG (0x%" PRIx64 ", 0x%" PRIx64 ")", + env->insns_flags & ~PPC_TCG_INSNS, + env->insns_flags2 & ~PPC_TCG_INSNS2); } env->insns_flags &= PPC_TCG_INSNS; env->insns_flags2 &= PPC_TCG_INSNS2; diff --git a/ui/keymaps.c b/ui/keymaps.c index 7fa21f81b2..a6cefdaff9 100644 --- a/ui/keymaps.c +++ b/ui/keymaps.c @@ -26,6 +26,7 @@ #include "keymaps.h" #include "sysemu/sysemu.h" #include "trace.h" +#include "qemu/error-report.h" static int get_keysym(const name2keysym_t *table, const char *name) @@ -76,8 +77,8 @@ static void add_keysym(char *line, int keysym, int keycode, kbd_layout_t *k) { k->keysym2keycode[keysym] = keycode; } else { if (k->extra_count >= MAX_EXTRA_COUNT) { - fprintf(stderr, "Warning: Could not assign keysym %s (0x%x)" - " because of memory constraints.\n", line, keysym); + warn_report("Could not assign keysym %s (0x%x)" + " because of memory constraints.", line, keysym); } else { trace_keymap_add("extra", keysym, keycode, line); k->keysym2keycode_extra[k->extra_count]. @@ -197,8 +198,8 @@ int keysym2scancode(void *kbd_layout, int keysym) if (keysym < MAX_NORMAL_KEYCODE) { if (k->keysym2keycode[keysym] == 0) { trace_keymap_unmapped(keysym); - fprintf(stderr, "Warning: no scancode found for keysym %d\n", - keysym); + warn_report("no scancode found for keysym %d", + keysym); } return k->keysym2keycode[keysym]; } else { diff --git a/util/main-loop.c b/util/main-loop.c index 2f48f41e62..7558eb5f53 100644 --- a/util/main-loop.c +++ b/util/main-loop.c @@ -32,6 +32,7 @@ #include "slirp/libslirp.h" #include "qemu/main-loop.h" #include "block/aio.h" +#include "qemu/error-report.h" #ifndef _WIN32 @@ -236,9 +237,8 @@ static int os_host_main_loop_wait(int64_t timeout) static bool notified; if (!notified && !qtest_enabled() && !qtest_driver()) { - fprintf(stderr, - "main-loop: WARNING: I/O thread spun for %d iterations\n", - MAX_MAIN_LOOP_SPIN); + warn_report("I/O thread spun for %d iterations", + MAX_MAIN_LOOP_SPIN); notified = true; }