Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/808835/?format=api
{ "id": 808835, "url": "http://patchwork.ozlabs.org/api/patches/808835/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/e2f6ce2bb822eaf352442e544146fc0f671ca1af.1504228916.git.alistair.francis@xilinx.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<e2f6ce2bb822eaf352442e544146fc0f671ca1af.1504228916.git.alistair.francis@xilinx.com>", "list_archive_url": null, "date": "2017-09-01T16:51:18", "name": "[v3,4/7] Convert multi-line fprintf() to warn_report()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "b8a395c93e2dbc19dc9fa6759eb4c4472453b62f", "submitter": { "id": 47878, "url": "http://patchwork.ozlabs.org/api/people/47878/?format=api", "name": "Alistair Francis", "email": "alistair.francis@xilinx.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/e2f6ce2bb822eaf352442e544146fc0f671ca1af.1504228916.git.alistair.francis@xilinx.com/mbox/", "series": [ { "id": 1078, "url": "http://patchwork.ozlabs.org/api/series/1078/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1078", "date": "2017-09-01T16:51:00", "name": "More warning reporting fixed", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/1078/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/808835/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/808835/checks/", "tags": {}, "related": [], "headers": { "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;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=xilinx.onmicrosoft.com\n\theader.i=@xilinx.onmicrosoft.com header.b=\"F6AJtAKc\"; \n\tdkim-atps=neutral", "spf=pass (sender IP is 149.199.60.100)\n\tsmtp.mailfrom=xilinx.com; redhat.com; dkim=none (message not signed)\n\theader.d=none;redhat.com; dmarc=bestguesspass action=none\n\theader.from=xilinx.com;" ], "Received": [ "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xkQWW3DwYz9t2x\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 2 Sep 2017 03:01:43 +1000 (AEST)", "from localhost ([::1]:50254 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dnpK9-0003qB-J5\n\tfor incoming@patchwork.ozlabs.org; Fri, 01 Sep 2017 13:01:41 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:51349)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <alistai@xilinx.com>) id 1dnpET-0006gk-95\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 12:55:51 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <alistai@xilinx.com>) id 1dnpEM-0006Oz-QZ\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 12:55:49 -0400", "from mail-dm3nam03on0059.outbound.protection.outlook.com\n\t([104.47.41.59]:27184\n\thelo=NAM03-DM3-obe.outbound.protection.outlook.com)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <alistai@xilinx.com>) id 1dnpEM-0006O5-3h\n\tfor qemu-devel@nongnu.org; Fri, 01 Sep 2017 12:55:42 -0400", "from MWHPR02CA0060.namprd02.prod.outlook.com (10.164.133.49) by\n\tBY2PR0201MB1925.namprd02.prod.outlook.com (10.163.75.155) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n\t15.20.13.10; Fri, 1 Sep 2017 16:55:06 +0000", "from CY1NAM02FT030.eop-nam02.prod.protection.outlook.com\n\t(2a01:111:f400:7e45::208) by MWHPR02CA0060.outlook.office365.com\n\t(2603:10b6:301:60::49) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18\n\tvia Frontend Transport; Fri, 1 Sep 2017 16:55:05 +0000", "from xsj-pvapsmtpgw02 (149.199.60.100) by\n\tCY1NAM02FT030.mail.protection.outlook.com (10.152.75.163) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11\n\tvia Frontend Transport; Fri, 1 Sep 2017 16:55:04 +0000", "from unknown-38-66.xilinx.com ([149.199.38.66]:57450\n\thelo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63)\n\t(envelope-from <alistair.francis@xilinx.com>)\n\tid 1dnpDj-0000Pm-Cn; Fri, 01 Sep 2017 09:55:03 -0700", "from [127.0.0.1] (helo=localhost)\n\tby xsj-pvapsmtp01 with smtp (Exim 4.63)\n\t(envelope-from <alistair.francis@xilinx.com>)\n\tid 1dnpDj-0003lD-A3; Fri, 01 Sep 2017 09:55:03 -0700", "from xsj-pvapsmtp01 (mailhub.xilinx.com [149.199.38.66])\n\tby xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id\n\tv81GssDZ028977; Fri, 1 Sep 2017 09:54:54 -0700", "from [172.19.2.220] (helo=localhost.localdomain)\n\tby xsj-pvapsmtp01 with esmtp (Exim 4.63)\n\t(envelope-from <alistair.francis@xilinx.com>)\n\tid 1dnpDa-0003ey-BR; Fri, 01 Sep 2017 09:54:54 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=xilinx.onmicrosoft.com; s=selector1-xilinx-com;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=0aAn2gJp32t91A6LR8DetARH2Qxk7O8thx/4zRDQ5sI=;\n\tb=F6AJtAKcyNcyBNKunPBXeA+TQjN7lV5BeKHFbsU6I0luWZ3n9K2TWYG/t3KBK2EQoHzk0AcIA+ypaZF/aYhUp3kjBpgXQxMN1oan7k3q++3oFQqJjLYyaWr46NIQ+9/DrBc2AfvR/O8bXxNK1uLMUXCMHeonTWrHYQkGOcmn8sU=", "Received-SPF": "Pass (protection.outlook.com: domain of xilinx.com designates\n\t149.199.60.100 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=149.199.60.100; helo=xsj-pvapsmtpgw02;", "From": "Alistair Francis <alistair.francis@xilinx.com>", "To": "<qemu-devel@nongnu.org>", "Date": "Fri, 1 Sep 2017 09:51:18 -0700", "Message-ID": "<e2f6ce2bb822eaf352442e544146fc0f671ca1af.1504228916.git.alistair.francis@xilinx.com>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<cover.1504228916.git.alistair.francis@xilinx.com>", "References": "<cover.1504228916.git.alistair.francis@xilinx.com>", "X-RCIS-Action": "ALLOW", "X-TM-AS-Product-Ver": "IMSS-7.1.0.1224-8.1.0.1062-23296.003", "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; \n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(39860400002)(2980300002)(438002)(189002)(199003)(9786002)(4326008)(6666003)(48376002)(50466002)(5003940100001)(2950100002)(6916009)(2351001)(8666007)(106466001)(118296001)(575784001)(2906002)(626005)(36756003)(36386004)(50226002)(54906002)(8936002)(5660300001)(47776003)(110136004)(305945005)(50986999)(189998001)(76176999)(356003)(39060400002)(478600001)(77096006)(81166006)(81156014)(8676002)(63266004)(7416002)(33646002)(107986001)(5001870100001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB1925;\n\tH:xsj-pvapsmtpgw02; FPR:; SPF:Pass;\n\tPTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; MX:1; A:1;\n\tLANG:en; ", "X-Microsoft-Exchange-Diagnostics": [ "1; CY1NAM02FT030;\n\t1:oVdvPvHXYECotEQNg0q38d7g9i0i50WMkhsA3DKLRtl1XLOK7DrTxKzPWugJT9gvmOHtZftVfI6XkY1RaAM0N8L51F/ltl9UItFokDN5PjCfGFGZDQXUZ8F7zBfEKioO", "1; BY2PR0201MB1925;\n\t3:pgnoN3kUhgx+FW08/QIObYkqB6rdaluBvhcaa3P3GOvt++BVd3Y0W2GHCrjRocXPWJDsCjqsiXf0iaxsnQR6TeYyOWI5XtFfaD5Go/s4a4itWLt7ki54++TmlCeT3SLkiMCXMv/g4XdHWSNrAq1LRo6nJnlfZPRfESYe8k15NEyVj40VMwxDtsG5BioIU2FAGv5riTGjzZ4hBN24V5Gw2hKw+FCtsVNO8nPMeNQuw22YCSijLViV2JzJ8jhkzSWOHC6cqqpUYZeEmgSk2gmvCFxWUZf0dKQ+QlQxqeM5oX3UBT+9pen+FnXQbeF4W4MWBfpcwzoL4LkxijxVOUSKSyIMcRXp7v4RMG33LdDNolg=;\n\t25:uuab40pa6UPYiZYzuTnY6yyrhVnUP+lMeFbZjsSvk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24:MwJwOMyVxyQrDK3/Wc03VobKCun3rG3AiGBVLFZspsDPDNnhV9h1AP6plCtw4yR069KzY5bZiaKvMm7KS5/a2egR50TpJj8Jiaa0GksrHoo=;\n\t7:7tqg+mVJUU68HzUpAHE7Z6ZnfEmHU6hpKSDZRJfS3SuDQ5fjcIveWZ9eUZHzWelqSHcs8iFfMrFBlLr8gqkBFwDr9lqpbLSk3mM0dbcbes+Z5jycoUkODkxllfwjlm6kBeBw6MXUbfaE/oqXgAWGcMhymfj2irEiRHhpK//r88V5vRghkO1j96QvaASlWptwGdfmwD2iVJCSk8wcb3vdvlZkn+yXQ5ODj5tR0A0o8dA=" ], "MIME-Version": "1.0", "Content-Type": "text/plain", "X-MS-PublicTrafficType": "Email", "X-MS-Office365-Filtering-Correlation-Id": "eacb81e3-d0ba-4dbb-3e36-08d4f15a3210", "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(8251501002)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:BY2PR0201MB1925; ", "X-MS-TrafficTypeDiagnostic": "BY2PR0201MB1925:", "X-Exchange-Antispam-Report-Test": "UriScan:(190383065149520)(192813158149592)(70601490899591)(104084551191319)(17755550239193);", "X-Microsoft-Antispam-PRVS": "<BY2PR0201MB19258942546F1A6F2940804ADC920@BY2PR0201MB1925.namprd02.prod.outlook.com>", "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(5005006)(13016025)(8121501046)(100000703101)(100105400095)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:BY2PR0201MB1925; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:BY2PR0201MB1925; ", "X-Forefront-PRVS": "0417A3FFD2", "SpamDiagnosticOutput": "1:99", "SpamDiagnosticMetadata": "NSPM", "X-OriginatorOrg": "xilinx.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "01 Sep 2017 16:55:04.1920\n\t(UTC)", "X-MS-Exchange-CrossTenant-Id": "657af505-d5df-48d0-8300-c31994686c5c", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "TenantId=657af505-d5df-48d0-8300-c31994686c5c; \n\tIp=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02]", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BY2PR0201MB1925", "X-detected-operating-system": "by eggs.gnu.org: Windows 7 or 8 [fuzzy]", "X-Received-From": "104.47.41.59", "Subject": "[Qemu-devel] [PATCH v3 4/7] Convert multi-line fprintf() to\n\twarn_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>,\n\t<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>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Cc": "Kevin Wolf <kwolf@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, \n\tStefano Stabellini <sstabellini@kernel.org>,\n\tEduardo Habkost <ehabkost@redhat.com>,\n\t\"Michael S. Tsirkin\" <mst@redhat.com>,\n\tJason Wang <jasowang@redhat.com>, Alexander Graf <agraf@suse.de>,\n\tCornelia Huck <cohuck@redhat.com>, armbru@redhat.com,\n\tMax Reitz <mreitz@redhat.com>, Yongbok Kim <yongbok.kim@imgtec.com>, \n\tIgor Mammedov <imammedo@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>,\n\tDavid Gibson <david@gibson.dropbear.id.au>, pbonzini@redhat.com,\n\tAnthony Perard <anthony.perard@citrix.com>, alistair23@gmail.com,\n\talistair.francis@xilinx.com,\n\tChristian Borntraeger <borntraeger@de.ibm.com>,\n\tAurelien Jarno <aurelien@aurel32.net>,\n\tRichard Henderson <rth@twiddle.net>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>" }, "content": "Convert all the multi-line uses of fprintf(stderr, \"warning:\"...\"\\n\"...\nto use warn_report() instead. This helps standardise on a single\nmethod of printing warnings to the user.\n\nAll of the warnings were changed using these commands:\n find ./* -type f -exec sed -i \\\n 'N; {s|fprintf(.*\".*warning[,:] \\(.*\\)\\\\n\"\\(.*\\));|warn_report(\"\\1\"\\2);|Ig}' \\\n {} +\n find ./* -type f -exec sed -i \\\n 'N;N; {s|fprintf(.*\".*warning[,:] \\(.*\\)\\\\n\"\\(.*\\));|warn_report(\"\\1\"\\2);|Ig}' \\\n {} +\n find ./* -type f -exec sed -i \\\n 'N;N;N; {s|fprintf(.*\".*warning[,:] \\(.*\\)\\\\n\"\\(.*\\));|warn_report(\"\\1\"\\2);|Ig}' \\\n {} +\n find ./* -type f -exec sed -i \\\n 'N;N;N;N {s|fprintf(.*\".*warning[,:] \\(.*\\)\\\\n\"\\(.*\\));|warn_report(\"\\1\"\\2);|Ig}' \\\n {} +\n find ./* -type f -exec sed -i \\\n 'N;N;N;N;N {s|fprintf(.*\".*warning[,:] \\(.*\\)\\\\n\"\\(.*\\));|warn_report(\"\\1\"\\2);|Ig}' \\\n {} +\n find ./* -type f -exec sed -i \\\n 'N;N;N;N;N;N {s|fprintf(.*\".*warning[,:] \\(.*\\)\\\\n\"\\(.*\\));|warn_report(\"\\1\"\\2);|Ig}' \\\n {} +\n find ./* -type f -exec sed -i \\\n 'N;N;N;N;N;N;N; {s|fprintf(.*\".*warning[,:] \\(.*\\)\\\\n\"\\(.*\\));|warn_report(\"\\1\"\\2);|Ig}' \\\n {} +\n\nIndentation fixed up manually afterwards.\n\nSome of the lines were manually edited to reduce the line length to below\n80 charecters. Some of the lines with newlines in the middle of the\nstring were also manually edit to avoid checkpatch errrors.\n\nThe #include lines were manually updated to allow the code to compile.\n\nSeveral of the warning messages can be improved after this patch, to\nkeep this patch mechanical this has been moved into a later patch.\n\nSigned-off-by: Alistair Francis <alistair.francis@xilinx.com>\nCc: Paolo Bonzini <pbonzini@redhat.com>\nCc: Kevin Wolf <kwolf@redhat.com>\nCc: Max Reitz <mreitz@redhat.com>\nCc: \"Michael S. Tsirkin\" <mst@redhat.com>\nCc: Igor Mammedov <imammedo@redhat.com>\nCc: Peter Maydell <peter.maydell@linaro.org>\nCc: Stefano Stabellini <sstabellini@kernel.org>\nCc: Anthony Perard <anthony.perard@citrix.com>\nCc: Richard Henderson <rth@twiddle.net>\nCc: Eduardo Habkost <ehabkost@redhat.com>\nCc: Aurelien Jarno <aurelien@aurel32.net>\nCc: Yongbok Kim <yongbok.kim@imgtec.com>\nCc: Cornelia Huck <cohuck@redhat.com>\nCc: Christian Borntraeger <borntraeger@de.ibm.com>\nCc: Alexander Graf <agraf@suse.de>\nCc: Jason Wang <jasowang@redhat.com>\nCc: David Gibson <david@gibson.dropbear.id.au>\nCc: Gerd Hoffmann <kraxel@redhat.com>\nAcked-by: Cornelia Huck <cohuck@redhat.com>\nReviewed-by: Markus Armbruster <armbru@redhat.com>\n---\nI couldn't figure out any nice way (it is possible with some more logic\ninside the sed apparently) to do this is one command, so I had to use\nall of the commands above.\n\n accel/kvm/kvm-all.c | 7 +++----\n block/vvfat.c | 4 ++--\n hw/acpi/core.c | 7 +++----\n hw/arm/vexpress.c | 4 ++--\n hw/i386/xen/xen-mapcache.c | 5 +++--\n hw/mips/mips_malta.c | 4 ++--\n hw/mips/mips_r4k.c | 6 +++---\n hw/s390x/s390-virtio.c | 16 ++++++++--------\n net/hub.c | 9 ++++-----\n net/net.c | 14 +++++++-------\n target/i386/cpu.c | 12 ++++++------\n target/i386/hax-mem.c | 6 +++---\n target/ppc/translate_init.c | 18 +++++++++---------\n ui/keymaps.c | 9 +++++----\n util/main-loop.c | 6 +++---\n 15 files changed, 63 insertions(+), 64 deletions(-)", "diff": "diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c\nindex 46ce479dc3..03e26e5a07 100644\n--- a/accel/kvm/kvm-all.c\n+++ b/accel/kvm/kvm-all.c\n@@ -1629,10 +1629,9 @@ static int kvm_init(MachineState *ms)\n \n while (nc->name) {\n if (nc->num > soft_vcpus_limit) {\n- fprintf(stderr,\n- \"Warning: Number of %s cpus requested (%d) exceeds \"\n- \"the recommended cpus supported by KVM (%d)\\n\",\n- nc->name, nc->num, soft_vcpus_limit);\n+ warn_report(\"Number of %s cpus requested (%d) exceeds \"\n+ \"the recommended cpus supported by KVM (%d)\",\n+ nc->name, nc->num, soft_vcpus_limit);\n \n if (nc->num > hard_vcpus_limit) {\n fprintf(stderr, \"Number of %s cpus requested (%d) exceeds \"\ndiff --git a/block/vvfat.c b/block/vvfat.c\nindex d682f0a9dc..04801f3136 100644\n--- a/block/vvfat.c\n+++ b/block/vvfat.c\n@@ -1227,8 +1227,8 @@ static int vvfat_open(BlockDriverState *bs, QDict *options, int flags,\n \n switch (s->fat_type) {\n case 32:\n- fprintf(stderr, \"Big fat greek warning: FAT32 has not been tested. \"\n- \"You are welcome to do so!\\n\");\n+ warn_report(\"FAT32 has not been tested. \"\n+ \"You are welcome to do so!\");\n break;\n case 16:\n case 12:\ndiff --git a/hw/acpi/core.c b/hw/acpi/core.c\nindex 2a1b79c838..cd0a1d357b 100644\n--- a/hw/acpi/core.c\n+++ b/hw/acpi/core.c\n@@ -184,10 +184,9 @@ static void acpi_table_install(const char unsigned *blob, size_t bloblen,\n }\n \n if (has_header && le32_to_cpu(ext_hdr->length) != acpi_payload_size) {\n- fprintf(stderr,\n- \"warning: ACPI table has wrong length, header says \"\n- \"%\" PRIu32 \", actual size %zu bytes\\n\",\n- le32_to_cpu(ext_hdr->length), acpi_payload_size);\n+ warn_report(\"ACPI table has wrong length, header says \"\n+ \"%\" PRIu32 \", actual size %zu bytes\",\n+ le32_to_cpu(ext_hdr->length), acpi_payload_size);\n }\n ext_hdr->length = cpu_to_le32(acpi_payload_size);\n \ndiff --git a/hw/arm/vexpress.c b/hw/arm/vexpress.c\nindex 528c65ddb6..2445eb4408 100644\n--- a/hw/arm/vexpress.c\n+++ b/hw/arm/vexpress.c\n@@ -491,8 +491,8 @@ static void vexpress_modify_dtb(const struct arm_boot_info *info, void *fdt)\n /* Not fatal, we just won't provide virtio. This will\n * happen with older device tree blobs.\n */\n- fprintf(stderr, \"QEMU: warning: couldn't find interrupt controller in \"\n- \"dtb; will not include virtio-mmio devices in the dtb.\\n\");\n+ warn_report(\"couldn't find interrupt controller in \"\n+ \"dtb; will not include virtio-mmio devices in the dtb.\");\n } else {\n int i;\n const hwaddr *map = daughterboard->motherboard_map;\ndiff --git a/hw/i386/xen/xen-mapcache.c b/hw/i386/xen/xen-mapcache.c\nindex 369c3df8a0..91a4fd6984 100644\n--- a/hw/i386/xen/xen-mapcache.c\n+++ b/hw/i386/xen/xen-mapcache.c\n@@ -9,6 +9,7 @@\n */\n \n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n \n #include <sys/resource.h>\n \n@@ -125,8 +126,8 @@ void xen_map_cache_init(phys_offset_to_gaddr_t f, void *opaque)\n rlimit_as.rlim_cur = rlimit_as.rlim_max;\n \n if (rlimit_as.rlim_max != RLIM_INFINITY) {\n- fprintf(stderr, \"Warning: QEMU's maximum size of virtual\"\n- \" memory is not infinity.\\n\");\n+ warn_report(\"QEMU's maximum size of virtual\"\n+ \" memory is not infinity.\");\n }\n if (rlimit_as.rlim_max < MCACHE_MAX_SIZE + NON_MCACHE_MEMORY_SIZE) {\n mapcache->max_mcache_size = rlimit_as.rlim_max -\ndiff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c\nindex af678f5784..233e2ee802 100644\n--- a/hw/mips/mips_malta.c\n+++ b/hw/mips/mips_malta.c\n@@ -216,8 +216,8 @@ static void generate_eeprom_spd(uint8_t *eeprom, ram_addr_t ram_size)\n }\n \n if (ram_size) {\n- fprintf(stderr, \"Warning: SPD cannot represent final %dMB\"\n- \" of SDRAM\\n\", (int)ram_size);\n+ warn_report(\"SPD cannot represent final %dMB\"\n+ \" of SDRAM\", (int)ram_size);\n }\n \n /* fill in SPD memory information */\ndiff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c\nindex 2f5ced7409..6ffb88fd70 100644\n--- a/hw/mips/mips_r4k.c\n+++ b/hw/mips/mips_r4k.c\n@@ -253,9 +253,9 @@ void mips_r4k_init(MachineState *machine)\n fprintf(stderr, \"qemu: Error registering flash memory.\\n\");\n \t}\n } else if (!qtest_enabled()) {\n-\t/* not fatal */\n- fprintf(stderr, \"qemu: Warning, could not load MIPS bios '%s'\\n\",\n-\t\tbios_name);\n+ /* not fatal */\n+ warn_report(\"could not load MIPS bios '%s'\",\n+ bios_name);\n }\n g_free(filename);\n \ndiff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390-virtio.c\nindex afa4148e6b..964df517b4 100644\n--- a/hw/s390x/s390-virtio.c\n+++ b/hw/s390x/s390-virtio.c\n@@ -146,9 +146,9 @@ void gtod_save(QEMUFile *f, void *opaque)\n \n r = s390_get_clock(&tod_high, &tod_low);\n if (r) {\n- fprintf(stderr, \"WARNING: Unable to get guest clock for migration. \"\n- \"Error code %d. Guest clock will not be migrated \"\n- \"which could cause the guest to hang.\\n\", r);\n+ warn_report(\"Unable to get guest clock for migration. \"\n+ \"Error code %d. Guest clock will not be migrated \"\n+ \"which could cause the guest to hang.\", r);\n qemu_put_byte(f, S390_TOD_CLOCK_VALUE_MISSING);\n return;\n }\n@@ -165,8 +165,8 @@ int gtod_load(QEMUFile *f, void *opaque, int version_id)\n int r;\n \n if (qemu_get_byte(f) == S390_TOD_CLOCK_VALUE_MISSING) {\n- fprintf(stderr, \"WARNING: Guest clock was not migrated. This could \"\n- \"cause the guest to hang.\\n\");\n+ warn_report(\"Guest clock was not migrated. This could \"\n+ \"cause the guest to hang.\");\n return 0;\n }\n \n@@ -175,9 +175,9 @@ int gtod_load(QEMUFile *f, void *opaque, int version_id)\n \n r = s390_set_clock(&tod_high, &tod_low);\n if (r) {\n- fprintf(stderr, \"WARNING: Unable to set guest clock value. \"\n- \"s390_get_clock returned error %d. This could cause \"\n- \"the guest to hang.\\n\", r);\n+ warn_report(\"Unable to set guest clock value. \"\n+ \"s390_get_clock returned error %d. This could cause \"\n+ \"the guest to hang.\", r);\n }\n \n return 0;\ndiff --git a/net/hub.c b/net/hub.c\nindex afe941ae7a..745a2168a1 100644\n--- a/net/hub.c\n+++ b/net/hub.c\n@@ -310,8 +310,8 @@ void net_hub_check_clients(void)\n QLIST_FOREACH(port, &hub->ports, next) {\n peer = port->nc.peer;\n if (!peer) {\n- fprintf(stderr, \"Warning: hub port %s has no peer\\n\",\n- port->nc.name);\n+ warn_report(\"hub port %s has no peer\",\n+ port->nc.name);\n continue;\n }\n \n@@ -334,9 +334,8 @@ void net_hub_check_clients(void)\n warn_report(\"vlan %d with no nics\", hub->id);\n }\n if (has_nic && !has_host_dev) {\n- fprintf(stderr,\n- \"Warning: vlan %d is not connected to host network\\n\",\n- hub->id);\n+ warn_report(\"vlan %d is not connected to host network\",\n+ hub->id);\n }\n }\n }\ndiff --git a/net/net.c b/net/net.c\nindex 0e28099554..45ab2a1a02 100644\n--- a/net/net.c\n+++ b/net/net.c\n@@ -1481,9 +1481,9 @@ void net_check_clients(void)\n \n QTAILQ_FOREACH(nc, &net_clients, next) {\n if (!nc->peer) {\n- fprintf(stderr, \"Warning: %s %s has no peer\\n\",\n- nc->info->type == NET_CLIENT_DRIVER_NIC ?\n- \"nic\" : \"netdev\", nc->name);\n+ warn_report(\"%s %s has no peer\",\n+ nc->info->type == NET_CLIENT_DRIVER_NIC ?\n+ \"nic\" : \"netdev\", nc->name);\n }\n }\n \n@@ -1494,10 +1494,10 @@ void net_check_clients(void)\n for (i = 0; i < MAX_NICS; i++) {\n NICInfo *nd = &nd_table[i];\n if (nd->used && !nd->instantiated) {\n- fprintf(stderr, \"Warning: requested NIC (%s, model %s) \"\n- \"was not created (not supported by this machine?)\\n\",\n- nd->name ? nd->name : \"anonymous\",\n- nd->model ? nd->model : \"unspecified\");\n+ warn_report(\"requested NIC (%s, model %s) \"\n+ \"was not created (not supported by this machine?)\",\n+ nd->name ? nd->name : \"anonymous\",\n+ nd->model ? nd->model : \"unspecified\");\n }\n }\n }\ndiff --git a/target/i386/cpu.c b/target/i386/cpu.c\nindex ddc45abd70..8c9ec7da0f 100644\n--- a/target/i386/cpu.c\n+++ b/target/i386/cpu.c\n@@ -1722,12 +1722,12 @@ static void report_unavailable_features(FeatureWord w, uint32_t mask)\n if ((1UL << i) & mask) {\n const char *reg = get_register_name_32(f->cpuid_reg);\n assert(reg);\n- fprintf(stderr, \"warning: %s doesn't support requested feature: \"\n- \"CPUID.%02XH:%s%s%s [bit %d]\\n\",\n- kvm_enabled() ? \"host\" : \"TCG\",\n- f->cpuid_eax, reg,\n- f->feat_names[i] ? \".\" : \"\",\n- f->feat_names[i] ? f->feat_names[i] : \"\", i);\n+ warn_report(\"%s doesn't support requested feature: \"\n+ \"CPUID.%02XH:%s%s%s [bit %d]\",\n+ kvm_enabled() ? \"host\" : \"TCG\",\n+ f->cpuid_eax, reg,\n+ f->feat_names[i] ? \".\" : \"\",\n+ f->feat_names[i] ? f->feat_names[i] : \"\", i);\n }\n }\n }\ndiff --git a/target/i386/hax-mem.c b/target/i386/hax-mem.c\nindex af090343f3..756f2dd268 100644\n--- a/target/i386/hax-mem.c\n+++ b/target/i386/hax-mem.c\n@@ -178,9 +178,9 @@ static void hax_process_section(MemoryRegionSection *section, uint8_t flags)\n if (!memory_region_is_ram(mr)) {\n if (memory_region_is_romd(mr)) {\n /* HAXM kernel module does not support ROMD yet */\n- fprintf(stderr, \"%s: Warning: Ignoring ROMD region 0x%016\" PRIx64\n- \"->0x%016\" PRIx64 \"\\n\", __func__, start_pa,\n- start_pa + size);\n+ warn_report(\"Ignoring ROMD region 0x%016\" PRIx64\n+ \"->0x%016\" PRIx64 \"\", __func__, start_pa,\n+ start_pa + size);\n }\n return;\n }\ndiff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c\nindex 8fb407ed73..989c104b76 100644\n--- a/target/ppc/translate_init.c\n+++ b/target/ppc/translate_init.c\n@@ -9225,14 +9225,14 @@ static void init_ppc_proc(PowerPCCPU *cpu)\n env->tlb_per_way = env->nb_tlb / env->nb_ways;\n }\n if (env->irq_inputs == NULL) {\n- fprintf(stderr, \"WARNING: no internal IRQ controller registered.\\n\"\n- \" Attempt QEMU to crash very soon !\\n\");\n+ warn_report(\"no internal IRQ controller registered.\"\n+ \" Attempt QEMU to crash very soon !\");\n }\n #endif\n if (env->check_pow == NULL) {\n- fprintf(stderr, \"WARNING: no power management check handler \"\n- \"registered.\\n\"\n- \" Attempt QEMU to crash very soon !\\n\");\n+ warn_report(\"no power management check handler \"\n+ \"registered.\"\n+ \" Attempt QEMU to crash very soon !\");\n }\n }\n \n@@ -9786,10 +9786,10 @@ static int ppc_fixup_cpu(PowerPCCPU *cpu)\n * tree. */\n if ((env->insns_flags & ~PPC_TCG_INSNS)\n || (env->insns_flags2 & ~PPC_TCG_INSNS2)) {\n- fprintf(stderr, \"Warning: Disabling some instructions which are not \"\n- \"emulated by TCG (0x%\" PRIx64 \", 0x%\" PRIx64 \")\\n\",\n- env->insns_flags & ~PPC_TCG_INSNS,\n- env->insns_flags2 & ~PPC_TCG_INSNS2);\n+ warn_report(\"Disabling some instructions which are not \"\n+ \"emulated by TCG (0x%\" PRIx64 \", 0x%\" PRIx64 \")\",\n+ env->insns_flags & ~PPC_TCG_INSNS,\n+ env->insns_flags2 & ~PPC_TCG_INSNS2);\n }\n env->insns_flags &= PPC_TCG_INSNS;\n env->insns_flags2 &= PPC_TCG_INSNS2;\ndiff --git a/ui/keymaps.c b/ui/keymaps.c\nindex 7fa21f81b2..a6cefdaff9 100644\n--- a/ui/keymaps.c\n+++ b/ui/keymaps.c\n@@ -26,6 +26,7 @@\n #include \"keymaps.h\"\n #include \"sysemu/sysemu.h\"\n #include \"trace.h\"\n+#include \"qemu/error-report.h\"\n \n static int get_keysym(const name2keysym_t *table,\n const char *name)\n@@ -76,8 +77,8 @@ static void add_keysym(char *line, int keysym, int keycode, kbd_layout_t *k) {\n k->keysym2keycode[keysym] = keycode;\n } else {\n if (k->extra_count >= MAX_EXTRA_COUNT) {\n- fprintf(stderr, \"Warning: Could not assign keysym %s (0x%x)\"\n- \" because of memory constraints.\\n\", line, keysym);\n+ warn_report(\"Could not assign keysym %s (0x%x)\"\n+ \" because of memory constraints.\", line, keysym);\n } else {\n trace_keymap_add(\"extra\", keysym, keycode, line);\n k->keysym2keycode_extra[k->extra_count].\n@@ -197,8 +198,8 @@ int keysym2scancode(void *kbd_layout, int keysym)\n if (keysym < MAX_NORMAL_KEYCODE) {\n if (k->keysym2keycode[keysym] == 0) {\n trace_keymap_unmapped(keysym);\n- fprintf(stderr, \"Warning: no scancode found for keysym %d\\n\",\n- keysym);\n+ warn_report(\"no scancode found for keysym %d\",\n+ keysym);\n }\n return k->keysym2keycode[keysym];\n } else {\ndiff --git a/util/main-loop.c b/util/main-loop.c\nindex 2f48f41e62..7558eb5f53 100644\n--- a/util/main-loop.c\n+++ b/util/main-loop.c\n@@ -32,6 +32,7 @@\n #include \"slirp/libslirp.h\"\n #include \"qemu/main-loop.h\"\n #include \"block/aio.h\"\n+#include \"qemu/error-report.h\"\n \n #ifndef _WIN32\n \n@@ -236,9 +237,8 @@ static int os_host_main_loop_wait(int64_t timeout)\n static bool notified;\n \n if (!notified && !qtest_enabled() && !qtest_driver()) {\n- fprintf(stderr,\n- \"main-loop: WARNING: I/O thread spun for %d iterations\\n\",\n- MAX_MAIN_LOOP_SPIN);\n+ warn_report(\"I/O thread spun for %d iterations\",\n+ MAX_MAIN_LOOP_SPIN);\n notified = true;\n }\n \n", "prefixes": [ "v3", "4/7" ] }