Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/818408/?format=api
{ "id": 818408, "url": "http://patchwork.ozlabs.org/api/patches/818408/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/f654ec7df8ddce28dc6eec632d53a6531053b0f0.1506384415.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": "<f654ec7df8ddce28dc6eec632d53a6531053b0f0.1506384415.git.alistair.francis@xilinx.com>", "list_archive_url": null, "date": "2017-09-26T00:09:00", "name": "[v1,5/8] util: Replace fprintf(stderr, \"*\\n\" with error_report()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7df4448974b51363bf79ef14fa33aad8157e3149", "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/f654ec7df8ddce28dc6eec632d53a6531053b0f0.1506384415.git.alistair.francis@xilinx.com/mbox/", "series": [ { "id": 5037, "url": "http://patchwork.ozlabs.org/api/series/5037/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=5037", "date": "2017-09-26T00:08:34", "name": "Remove some of the fprintf(stderr, \"*", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/5037/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/818408/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/818408/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=\"b1kWVmTn\"; \n\tdkim-atps=neutral", "spf=pass (sender IP is 149.199.60.83)\n\tsmtp.mailfrom=xilinx.com; nongnu.org; dkim=none (message not signed)\n\theader.d=none;nongnu.org; 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 3y1M1G5784z9s7C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 Sep 2017 10:15:46 +1000 (AEST)", "from localhost ([::1]:44900 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 1dwdXM-0004Re-M2\n\tfor incoming@patchwork.ozlabs.org; Mon, 25 Sep 2017 20:15:44 -0400", "from eggs.gnu.org ([2001:4830:134:3::10]:55557)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <alistai@xilinx.com>) id 1dwdUe-0002s8-10\n\tfor qemu-devel@nongnu.org; Mon, 25 Sep 2017 20:12:58 -0400", "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <alistai@xilinx.com>) id 1dwdUc-0005ZB-6W\n\tfor qemu-devel@nongnu.org; Mon, 25 Sep 2017 20:12:55 -0400", "from mail-bn3nam01on0084.outbound.protection.outlook.com\n\t([104.47.33.84]:17328\n\thelo=NAM01-BN3-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>)\n\tid 1dwdUV-0005Vg-T7; Mon, 25 Sep 2017 20:12:48 -0400", "from BN6PR02CA0089.namprd02.prod.outlook.com (10.161.158.30) by\n\tCY1PR02MB1134.namprd02.prod.outlook.com (10.163.15.148) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.20.77.7; Tue, 26 Sep 2017 00:12:44 +0000", "from SN1NAM02FT004.eop-nam02.prod.protection.outlook.com\n\t(2a01:111:f400:7e44::205) by BN6PR02CA0089.outlook.office365.com\n\t(2603:10b6:405:60::30) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.9 via\n\tFrontend Transport; Tue, 26 Sep 2017 00:12:44 +0000", "from xsj-pvapsmtpgw01 (149.199.60.83) by\n\tSN1NAM02FT004.mail.protection.outlook.com (10.152.72.175) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.35.14\n\tvia Frontend Transport; Tue, 26 Sep 2017 00:12:43 +0000", "from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01)\n\tby xsj-pvapsmtpgw01 with esmtp (Exim 4.63)\n\t(envelope-from <alistair.francis@xilinx.com>)\n\tid 1dwdUR-0007Az-1w; Mon, 25 Sep 2017 17:12:43 -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 1dwdUQ-0008Uu-Tn; Mon, 25 Sep 2017 17:12:42 -0700", "from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66])\n\tby xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id\n\tv8Q0Ce53021944; Mon, 25 Sep 2017 17:12:40 -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 1dwdUO-0008Uh-6Q; Mon, 25 Sep 2017 17:12:40 -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=3C4oOzTJJjHF3lZuxi1/TvAkg/sLRR51xeSZnKDnWpA=;\n\tb=b1kWVmTnwHF7Z6MORRPrs/13VfeuobwV8LlTw1ROmkhl7p30Bku+btpX4cGPDR1ATY1p+ekPvPWoVvlPvRD2uYZsbC4jyoucRdZNBbNz9bE7ih3OzqpfqpusX0lHJZReUdXyojkzYd6Es4andxxbSHbBb8T5MIdU9NDfKgwyH70=", "Received-SPF": "Pass (protection.outlook.com: domain of xilinx.com designates\n\t149.199.60.83 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=149.199.60.83; helo=xsj-pvapsmtpgw01;", "From": "Alistair Francis <alistair.francis@xilinx.com>", "To": "<qemu-devel@nongnu.org>", "Date": "Mon, 25 Sep 2017 17:09:00 -0700", "Message-ID": "<f654ec7df8ddce28dc6eec632d53a6531053b0f0.1506384415.git.alistair.francis@xilinx.com>", "X-Mailer": "git-send-email 2.11.0", "In-Reply-To": "<cover.1506384414.git.alistair.francis@xilinx.com>", "References": "<cover.1506384414.git.alistair.francis@xilinx.com>", "X-RCIS-Action": "ALLOW", "X-TM-AS-Product-Ver": "IMSS-7.1.0.1224-8.1.0.1062-23350.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.83; IPV:NLI; CTRY:US; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(346002)(376002)(39860400002)(2980300002)(438002)(189002)(199003)(478600001)(36386004)(33646002)(39060400002)(8676002)(4326008)(76176999)(50986999)(50226002)(36756003)(2906002)(118296001)(48376002)(8936002)(81156014)(106466001)(81166006)(575784001)(5660300001)(54906003)(16586007)(5003940100001)(2351001)(9786002)(189998001)(47776003)(305945005)(50466002)(63266004)(2950100002)(356003)(6916009)(77096006)(316002)(6666003)(107986001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1134; H:xsj-pvapsmtpgw01;\n\tFPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; MX:1; A:1; LANG:en;", "X-Microsoft-Exchange-Diagnostics": [ "1; SN1NAM02FT004;\n\t1:N4dyIZxjFlEDgbgALfG3JKyr2VFA0dx6/LHYL+spiebf+QP+p7GtuPEhsHroM4iIpcdAoL9dbAQ2kWhat3CDwjxbWJ+jfawWohT3lqUjBRW0X7+WEkOd2pXeguncK/3C", "1; CY1PR02MB1134;\n\t3:T6sngrlq6GGBqZ48WmpBp2lEVtSPNQiqOjJgthxqyM/B2sgiF42iUjBnbV/tJCTpur4HgZKWCQWpdmzjiDcyPjHZICZBl6DDvCqVFdmeULxTC8VXMKuWeSaWuGclz2aVdZrjrgWSvn7RdcIT1icppGLEfvjzHCn8vtR7kWTB6h4+nKvJQ2wmCX7tsP79TOYLI/JF0CdgwgunbMe0UEh0b78mw7BnZ1QWR5gAfX0+IhDBpt14uD5UnOm/CW46wyDnnHAPqc7JKzHyTAa31yI1h6cZomkEmCkV/icA5MlqmQdD9Gw4VkBNDS4DrCFrCnn5Nj7jx7GE+9/JnWucumVNovGCaBv8c6UmklxRc8uyb+M=;\n\t25:a2InCc+xRUoDW/R1qRAVuUSihIHr8tHdauBpbkIj8NG3WdkgdUA1FMDfPajoUZfaFZu3SYM/Nf93Xgwu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ABMo4KX+pwNk6ukSB7mzHAa6QJdZVVgafSOkMnTadrt3OROja/SvokYN9182APLmEDsY/8bv5UO302F8/sEoSxGjLwnWv+gD43BNNmhakePkIdZtMHDIVC9EAA/pR8Xq3Zgkc5jBsAxzzc676E4ddZOotMqXGV2Zktspq0ftNtCar4OY=" ], "MIME-Version": "1.0", "Content-Type": "text/plain", "X-MS-PublicTrafficType": "Email", "X-MS-Office365-Filtering-Correlation-Id": "f347566a-10cb-4d0c-fb9e-08d504734f57", "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(22001)(2017030254152)(8251501002)(2017052603199)(201703131423075)(201703031133081)(201702281549075);\n\tSRVR:CY1PR02MB1134; ", "X-MS-TrafficTypeDiagnostic": "CY1PR02MB1134:", "X-Exchange-Antispam-Report-Test": "UriScan:(788757137089)(192813158149592);", "X-Microsoft-Antispam-PRVS": "<CY1PR02MB113447FF3247ED3443E5676CDC7B0@CY1PR02MB1134.namprd02.prod.outlook.com>", "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123558100)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:CY1PR02MB1134; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:CY1PR02MB1134; ", "X-Forefront-PRVS": "0442E569BC", "SpamDiagnosticOutput": "1:99", "SpamDiagnosticMetadata": "NSPM", "X-OriginatorOrg": "xilinx.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "26 Sep 2017 00:12:43.4990\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.83]; Helo=[xsj-pvapsmtpgw01]", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CY1PR02MB1134", "X-detected-operating-system": "by eggs.gnu.org: Windows 7 or 8 [fuzzy]", "X-Received-From": "104.47.33.84", "Subject": "[Qemu-devel] [PATCH v1 5/8] util: Replace fprintf(stderr,\n\t\"*\\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>,\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>, qemu-block@nongnu.org,\n\tStefan Weil <sw@weilnetz.de>, armbru@redhat.com,\n\talistair.francis@xilinx.com, Paolo Bonzini <pbonzini@redhat.com>,\n\talistair23@gmail.com", "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": "Replace a large number of the fprintf(stderr, \"*\\n\" calls with\nerror_report(). The functions were renamed with these commands and then\ncompiler issues where manually fixed.\n\nfind ./* -type f -exec sed -i \\\n 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -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}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N;N;N;N;N;N;N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N;N;N;N;N;N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N;N;N;N;N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N;N;N;N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N;N;N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N;N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N;N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\nfind ./* -type f -exec sed -i \\\n 'N; {s|fprintf(stderr, \"\\(.*\\)\\\\n\"\\(.*\\));|error_report(\"\\1\"\\2);|Ig}' \\\n {} +\n\nSigned-off-by: Alistair Francis <alistair.francis@xilinx.com>\nCc: Kevin Wolf <kwolf@redhat.com>\nCc: Markus Armbruster <armbru@redhat.com>\nCc: Paolo Bonzini <pbonzini@redhat.com>\nCc: Stefan Weil <sw@weilnetz.de>\nCc: qemu-block@nongnu.org\n---\n\n util/aio-posix.c | 5 +++--\n util/coroutine-sigaltstack.c | 2 +-\n util/error.c | 2 +-\n util/main-loop.c | 2 +-\n util/mmap-alloc.c | 3 ++-\n util/module.c | 6 +++---\n util/osdep.c | 4 ++--\n util/oslib-posix.c | 3 ++-\n util/oslib-win32.c | 3 ++-\n util/qemu-coroutine.c | 5 +++--\n util/qemu-progress.c | 3 ++-\n util/qemu-thread-posix.c | 5 +++--\n util/qemu-thread-win32.c | 5 +++--\n util/qemu-timer-common.c | 3 ++-\n util/qht.c | 2 +-\n 15 files changed, 31 insertions(+), 22 deletions(-)", "diff": "diff --git a/util/aio-posix.c b/util/aio-posix.c\nindex 2d51239ec6..fe4772b4a9 100644\n--- a/util/aio-posix.c\n+++ b/util/aio-posix.c\n@@ -15,6 +15,7 @@\n \n #include \"qemu/osdep.h\"\n #include \"qemu-common.h\"\n+#include \"qemu/error-report.h\"\n #include \"block/block.h\"\n #include \"qemu/rcu_queue.h\"\n #include \"qemu/sockets.h\"\n@@ -696,8 +697,8 @@ void aio_context_setup(AioContext *ctx)\n {\n /* TODO remove this in final patch submission */\n if (getenv(\"QEMU_AIO_POLL_MAX_NS\")) {\n- fprintf(stderr, \"The QEMU_AIO_POLL_MAX_NS environment variable has \"\n- \"been replaced with -object iothread,poll-max-ns=NUM\\n\");\n+ error_report(\"The QEMU_AIO_POLL_MAX_NS environment variable has \"\n+ \"been replaced with -object iothread,poll-max-ns=NUM\");\n exit(1);\n }\n \ndiff --git a/util/coroutine-sigaltstack.c b/util/coroutine-sigaltstack.c\nindex f6fc49a0e5..96a01c2c88 100644\n--- a/util/coroutine-sigaltstack.c\n+++ b/util/coroutine-sigaltstack.c\n@@ -80,7 +80,7 @@ static void __attribute__((constructor)) coroutine_init(void)\n \n ret = pthread_key_create(&thread_state_key, qemu_coroutine_thread_cleanup);\n if (ret != 0) {\n- fprintf(stderr, \"unable to create leader key: %s\\n\", strerror(errno));\n+ error_report(\"unable to create leader key: %s\", strerror(errno));\n abort();\n }\n }\ndiff --git a/util/error.c b/util/error.c\nindex 3efdd69162..e423368ca0 100644\n--- a/util/error.c\n+++ b/util/error.c\n@@ -32,7 +32,7 @@ Error *error_fatal;\n static void error_handle_fatal(Error **errp, Error *err)\n {\n if (errp == &error_abort) {\n- fprintf(stderr, \"Unexpected error in %s() at %s:%d:\\n\",\n+ error_report(\"Unexpected error in %s() at %s:%d:\",\n err->func, err->src, err->line);\n error_report_err(err);\n abort();\ndiff --git a/util/main-loop.c b/util/main-loop.c\nindex 7558eb5f53..d8369716b2 100644\n--- a/util/main-loop.c\n+++ b/util/main-loop.c\n@@ -95,7 +95,7 @@ static int qemu_signal_init(void)\n sigdelset(&set, SIG_IPI);\n sigfd = qemu_signalfd(&set);\n if (sigfd == -1) {\n- fprintf(stderr, \"failed to create signalfd\\n\");\n+ error_report(\"failed to create signalfd\");\n return -errno;\n }\n \ndiff --git a/util/mmap-alloc.c b/util/mmap-alloc.c\nindex 3ec029a9ea..11887aac69 100644\n--- a/util/mmap-alloc.c\n+++ b/util/mmap-alloc.c\n@@ -11,6 +11,7 @@\n */\n \n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include \"qemu/mmap-alloc.h\"\n #include \"qemu/host-utils.h\"\n \n@@ -51,7 +52,7 @@ size_t qemu_mempath_getpagesize(const char *mem_path)\n } while (ret != 0 && errno == EINTR);\n \n if (ret != 0) {\n- fprintf(stderr, \"Couldn't statfs() memory path: %s\\n\",\n+ error_report(\"Couldn't statfs() memory path: %s\",\n strerror(errno));\n exit(1);\n }\ndiff --git a/util/module.c b/util/module.c\nindex c90973721f..1153e3ebb0 100644\n--- a/util/module.c\n+++ b/util/module.c\n@@ -124,13 +124,13 @@ static int module_load_file(const char *fname)\n \n g_module = g_module_open(fname, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);\n if (!g_module) {\n- fprintf(stderr, \"Failed to open module: %s\\n\",\n+ error_report(\"Failed to open module: %s\",\n g_module_error());\n ret = -EINVAL;\n goto out;\n }\n if (!g_module_symbol(g_module, DSO_STAMP_FUN_STR, (gpointer *)&sym)) {\n- fprintf(stderr, \"Failed to initialize module: %s\\n\",\n+ error_report(\"Failed to initialize module: %s\",\n fname);\n /* Print some info if this is a QEMU module (but from different build),\n * this will make debugging user problems easier. */\n@@ -169,7 +169,7 @@ void module_load_one(const char *prefix, const char *lib_name)\n static GHashTable *loaded_modules;\n \n if (!g_module_supported()) {\n- fprintf(stderr, \"Module is not supported by system.\\n\");\n+ error_report(\"Module is not supported by system.\");\n return;\n }\n \ndiff --git a/util/osdep.c b/util/osdep.c\nindex a479fedc4a..62d92c9560 100644\n--- a/util/osdep.c\n+++ b/util/osdep.c\n@@ -425,7 +425,7 @@ void fips_set_state(bool requested)\n #endif /* __linux__ */\n \n #ifdef _FIPS_DEBUG\n- fprintf(stderr, \"FIPS mode %s (requested %s)\\n\",\n+ error_report(\"FIPS mode %s (requested %s)\",\n \t (fips_enabled ? \"enabled\" : \"disabled\"),\n \t (requested ? \"enabled\" : \"disabled\"));\n #endif\n@@ -452,7 +452,7 @@ int socket_init(void)\n ret = WSAStartup(MAKEWORD(2, 2), &Data);\n if (ret != 0) {\n err = WSAGetLastError();\n- fprintf(stderr, \"WSAStartup: %d\\n\", err);\n+ error_report(\"WSAStartup: %d\", err);\n return -1;\n }\n atexit(socket_cleanup);\ndiff --git a/util/oslib-posix.c b/util/oslib-posix.c\nindex 80086c549f..d840692dd7 100644\n--- a/util/oslib-posix.c\n+++ b/util/oslib-posix.c\n@@ -34,6 +34,7 @@\n #include \"sysemu/sysemu.h\"\n #include \"trace.h\"\n #include \"qapi/error.h\"\n+#include \"qemu/error-report.h\"\n #include \"qemu/sockets.h\"\n #include <libgen.h>\n #include <sys/signal.h>\n@@ -87,7 +88,7 @@ int qemu_daemon(int nochdir, int noclose)\n void *qemu_oom_check(void *ptr)\n {\n if (ptr == NULL) {\n- fprintf(stderr, \"Failed to allocate memory: %s\\n\", strerror(errno));\n+ error_report(\"Failed to allocate memory: %s\", strerror(errno));\n abort();\n }\n return ptr;\ndiff --git a/util/oslib-win32.c b/util/oslib-win32.c\nindex 69a6286d50..2197a6a4fc 100644\n--- a/util/oslib-win32.c\n+++ b/util/oslib-win32.c\n@@ -30,6 +30,7 @@\n * see the license comment there.\n */\n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include <windows.h>\n #include \"qapi/error.h\"\n #include \"sysemu/sysemu.h\"\n@@ -44,7 +45,7 @@\n void *qemu_oom_check(void *ptr)\n {\n if (ptr == NULL) {\n- fprintf(stderr, \"Failed to allocate memory: %lu\\n\", GetLastError());\n+ error_report(\"Failed to allocate memory: %lu\", GetLastError());\n abort();\n }\n return ptr;\ndiff --git a/util/qemu-coroutine.c b/util/qemu-coroutine.c\nindex d6095c1d5a..1f7cce6706 100644\n--- a/util/qemu-coroutine.c\n+++ b/util/qemu-coroutine.c\n@@ -13,6 +13,7 @@\n */\n \n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include \"trace.h\"\n #include \"qemu-common.h\"\n #include \"qemu/thread.h\"\n@@ -110,7 +111,7 @@ void qemu_aio_coroutine_enter(AioContext *ctx, Coroutine *co)\n trace_qemu_aio_coroutine_enter(ctx, self, co, co->entry_arg);\n \n if (co->caller) {\n- fprintf(stderr, \"Co-routine re-entered recursively\\n\");\n+ error_report(\"Co-routine re-entered recursively\");\n abort();\n }\n \n@@ -164,7 +165,7 @@ void coroutine_fn qemu_coroutine_yield(void)\n trace_qemu_coroutine_yield(self, to);\n \n if (!to) {\n- fprintf(stderr, \"Co-routine is yielding to no one\\n\");\n+ error_report(\"Co-routine is yielding to no one\");\n abort();\n }\n \ndiff --git a/util/qemu-progress.c b/util/qemu-progress.c\nindex 3c2223c1a2..84598f0fbb 100644\n--- a/util/qemu-progress.c\n+++ b/util/qemu-progress.c\n@@ -23,6 +23,7 @@\n */\n \n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include \"qemu-common.h\"\n \n struct progress_state {\n@@ -68,7 +69,7 @@ static void sigusr_print(int signal)\n static void progress_dummy_print(void)\n {\n if (print_pending) {\n- fprintf(stderr, \" (%3.2f/100%%)\\n\", state.current);\n+ error_report(\" (%3.2f/100%%)\", state.current);\n print_pending = 0;\n }\n }\ndiff --git a/util/qemu-thread-posix.c b/util/qemu-thread-posix.c\nindex 4e95d272dc..4861b1fefc 100644\n--- a/util/qemu-thread-posix.c\n+++ b/util/qemu-thread-posix.c\n@@ -11,6 +11,7 @@\n *\n */\n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include \"qemu/thread.h\"\n #include \"qemu/atomic.h\"\n #include \"qemu/notify.h\"\n@@ -25,14 +26,14 @@ void qemu_thread_naming(bool enable)\n #ifndef CONFIG_THREAD_SETNAME_BYTHREAD\n /* This is a debugging option, not fatal */\n if (enable) {\n- fprintf(stderr, \"qemu: thread naming not supported on this host\\n\");\n+ error_report(\"qemu: thread naming not supported on this host\");\n }\n #endif\n }\n \n static void error_exit(int err, const char *msg)\n {\n- fprintf(stderr, \"qemu: %s: %s\\n\", msg, strerror(err));\n+ error_report(\"qemu: %s: %s\", msg, strerror(err));\n abort();\n }\n \ndiff --git a/util/qemu-thread-win32.c b/util/qemu-thread-win32.c\nindex 94f3491a87..46b5dac159 100644\n--- a/util/qemu-thread-win32.c\n+++ b/util/qemu-thread-win32.c\n@@ -16,6 +16,7 @@\n #endif\n \n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include \"qemu-common.h\"\n #include \"qemu/thread.h\"\n #include \"qemu/notify.h\"\n@@ -29,7 +30,7 @@ void qemu_thread_naming(bool enable)\n /* But note we don't actually name them on Windows yet */\n name_threads = enable;\n \n- fprintf(stderr, \"qemu: thread naming not supported on this host\\n\");\n+ error_report(\"qemu: thread naming not supported on this host\");\n }\n \n static void error_exit(int err, const char *msg)\n@@ -38,7 +39,7 @@ static void error_exit(int err, const char *msg)\n \n FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER,\n NULL, err, 0, (LPTSTR)&pstr, 2, NULL);\n- fprintf(stderr, \"qemu: %s: %s\\n\", msg, pstr);\n+ error_report(\"qemu: %s: %s\", msg, pstr);\n LocalFree(pstr);\n abort();\n }\ndiff --git a/util/qemu-timer-common.c b/util/qemu-timer-common.c\nindex 06d084d364..ab7b702c4f 100644\n--- a/util/qemu-timer-common.c\n+++ b/util/qemu-timer-common.c\n@@ -22,6 +22,7 @@\n * THE SOFTWARE.\n */\n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include \"qemu/timer.h\"\n \n /***********************************************************/\n@@ -37,7 +38,7 @@ static void __attribute__((constructor)) init_get_clock(void)\n int ret;\n ret = QueryPerformanceFrequency(&freq);\n if (ret == 0) {\n- fprintf(stderr, \"Could not calibrate ticks\\n\");\n+ error_report(\"Could not calibrate ticks\");\n exit(1);\n }\n clock_freq = freq.QuadPart;\ndiff --git a/util/qht.c b/util/qht.c\nindex ff4d2e6974..bfab5c7e5e 100644\n--- a/util/qht.c\n+++ b/util/qht.c\n@@ -154,7 +154,7 @@ static void qht_bucket_debug__locked(struct qht_bucket *b)\n continue;\n }\n if (seen_empty) {\n- fprintf(stderr, \"%s: b: %p, pos: %i, hash: 0x%x, p: %p\\n\",\n+ error_report(\"%s: b: %p, pos: %i, hash: 0x%x, p: %p\",\n __func__, b, i, b->hashes[i], b->pointers[i]);\n corrupt = true;\n }\n", "prefixes": [ "v1", "5/8" ] }