get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/818411/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 818411,
    "url": "http://patchwork.ozlabs.org/api/patches/818411/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/aaa8f552805a6baa429e62574730ff69f648e7fb.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": "<aaa8f552805a6baa429e62574730ff69f648e7fb.1506384415.git.alistair.francis@xilinx.com>",
    "list_archive_url": null,
    "date": "2017-09-26T00:09:03",
    "name": "[v1,6/8] ui: Replace fprintf(stderr, \"*\\n\" with error_report()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0f0eb630f53b52ac1a46da71c69937861dfb812d",
    "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/aaa8f552805a6baa429e62574730ff69f648e7fb.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/818411/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818411/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=\"VoZBaFhL\"; \n\tdkim-atps=neutral",
            "spf=pass (sender IP is 149.199.60.83)\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 3y1M483mDwz9sRm\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 Sep 2017 10:18:16 +1000 (AEST)",
            "from localhost ([::1]:44926 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 1dwdZm-0006dF-GW\n\tfor incoming@patchwork.ozlabs.org; Mon, 25 Sep 2017 20:18:14 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:55667)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <alistai@xilinx.com>) id 1dwdUr-00030b-De\n\tfor qemu-devel@nongnu.org; Mon, 25 Sep 2017 20:13:11 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <alistai@xilinx.com>) id 1dwdUn-0005ic-Fx\n\tfor qemu-devel@nongnu.org; Mon, 25 Sep 2017 20:13:09 -0400",
            "from mail-sn1nam01on0051.outbound.protection.outlook.com\n\t([104.47.32.51]:10976\n\thelo=NAM01-SN1-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 1dwdUn-0005hp-59\n\tfor qemu-devel@nongnu.org; Mon, 25 Sep 2017 20:13:05 -0400",
            "from MWHPR02CA0050.namprd02.prod.outlook.com (10.164.133.39) by\n\tBLUPR02MB1122.namprd02.prod.outlook.com (10.163.79.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:55 +0000",
            "from SN1NAM02FT043.eop-nam02.prod.protection.outlook.com\n\t(2a01:111:f400:7e44::209) by MWHPR02CA0050.outlook.office365.com\n\t(2603:10b6:301:60::39) with Microsoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.56.11 via\n\tFrontend Transport; Tue, 26 Sep 2017 00:12:54 +0000",
            "from xsj-pvapsmtpgw01 (149.199.60.83) by\n\tSN1NAM02FT043.mail.protection.outlook.com (10.152.72.184) 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:53 +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 1dwdUb-0007BB-74; Mon, 25 Sep 2017 17:12:53 -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 1dwdUb-0008Vj-2u; Mon, 25 Sep 2017 17:12:53 -0700",
            "from xsj-pvapsmtp01 (xsj-mail.xilinx.com [149.199.38.66])\n\tby xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id\n\tv8Q0Ch44023049; Mon, 25 Sep 2017 17:12:44 -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 1dwdUR-0008V4-RD; Mon, 25 Sep 2017 17:12:43 -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=2JrqJ4pgsVddS+P1MB3YSHkRGOUdJRPRozNIscjfoe4=;\n\tb=VoZBaFhLFf9olRj/0p9DuRorAajgnpoZ5O4lWcfym+2AOeIwU+hqWryHeK0IFsA8CzrM3CHI5WOgwZ+b6VXpNGDxmYfyhBw7Qf08dEoDODOSdbEXgfCnNWHSbaAJGXueyM0wWBw+Jn/VJc2MLIgbGa8WY7zWpXLSszOn6qd4778=",
        "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:03 -0700",
        "Message-ID": "<aaa8f552805a6baa429e62574730ff69f648e7fb.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)(376002)(346002)(39860400002)(2980300002)(438002)(199003)(189002)(189998001)(36756003)(2950100002)(6916009)(478600001)(16586007)(36386004)(50986999)(316002)(54906003)(77096006)(48376002)(76176999)(50466002)(9786002)(106466001)(2906002)(8936002)(81156014)(8676002)(81166006)(356003)(6666003)(5660300001)(4326008)(33646002)(47776003)(2351001)(63266004)(39060400002)(118296001)(5003940100001)(575784001)(50226002)(305945005)(107986001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB1122; H:xsj-pvapsmtpgw01;\n\tFPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; A:1; MX:1; LANG:en;",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; SN1NAM02FT043;\n\t1:7G0vlT7qwdzc4zfaIB8Sg5dDU3MvjOK9rJGUFyjHrlN79kMM61vXIjIj+8G+CzQXnlH1V2GC8oCmS7mpCN0s9sLtv6s9xatYJGpFOxWobVZJTrT6yIVWzO2p8sG4SmyP",
            "1; BLUPR02MB1122;\n\t3:GecsHYh2SyrZH1bcdcv3oru08ZNB7Cod7CLaFEFLQ9yb567Xi/OfZmjrY4usf3TyI/8k19mrjTmWP5RrSdnvv7Frx5PnqUp08g5nhZvsttePQqeeJtrzz2pWnaVtfom6IamnfCY3tz+Zivm5xmkl3BotI6JrRa27rqKcd3MOXMNFaIVmGrXaAOEBWm4AjWd/BXJO5g9i76myvfbf7L5SefBP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r9I3+kCsay5ShlkKeIh3vhWaaakIvm2j2zJvzL4PFx8Tb/gnK6O0QpQnA==;\n\t24:awn7dVoFAQKvZpPc6EpQvSgIygmfYf62qo1rZ2d2cLjKJ4qzoOoBBLNekqcd8bXDlSRFf0ieDPbvFIb+UDd3su6RI2tI5/YMQjCfQEnvBvk=;\n\t7:g1ftVPTr3BNrStv78YKeO20EVMw5+rqefUo+MAE+xjwaQKSid/6p9tgQJu+c/H031Cm08JrohpiSC48gpY1ERFzXmxP1hyZX1IlgEzTq5GVG8rsL4LcOp3Yxtr5xymullyp4Xoq4fOkD8hcbqLkc6tytPYukDCVPoyuKxNt0cH6/dIWkshBBeVp2C04H09KSgEdwzvB3Qs2AunFlu/YNdWRcYJl1wy/+vGjatOyNeHk="
        ],
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "0da41518-b63b-4f0c-6cce-08d504735549",
        "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(22001)(2017030254152)(8251501002)(2017052603199)(201703131423075)(201703031133081)(201702281549075);\n\tSRVR:BLUPR02MB1122; ",
        "X-MS-TrafficTypeDiagnostic": "BLUPR02MB1122:",
        "X-Exchange-Antispam-Report-Test": "UriScan:(788757137089)(192813158149592);",
        "X-Microsoft-Antispam-PRVS": "<BLUPR02MB1122FE8824AA9DC9B5AC4802DC7B0@BLUPR02MB1122.namprd02.prod.outlook.com>",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123558100)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:BLUPR02MB1122; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:BLUPR02MB1122; ",
        "X-Forefront-PRVS": "0442E569BC",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-OriginatorOrg": "xilinx.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "26 Sep 2017 00:12:53.7043\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": "BLUPR02MB1122",
        "X-detected-operating-system": "by eggs.gnu.org: Windows 7 or 8 [fuzzy]",
        "X-Received-From": "104.47.32.51",
        "Subject": "[Qemu-devel] [PATCH v1 6/8] ui: 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": "Peter Maydell <peter.maydell@linaro.org>, alistair23@gmail.com,\n\tGerd Hoffmann <kraxel@redhat.com>, armbru@redhat.com,\n\talistair.francis@xilinx.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: Peter Maydell <peter.maydell@linaro.org>\nCc: Gerd Hoffmann <kraxel@redhat.com>\n---\n\n ui/cocoa.m         |  6 +++---\n ui/console.c       |  2 +-\n ui/curses.c        |  2 +-\n ui/cursor.c        | 10 +++++-----\n ui/gtk.c           | 10 +++++-----\n ui/input-linux.c   |  3 ++-\n ui/keymaps.c       |  4 ++--\n ui/sdl.c           | 14 +++++++-------\n ui/sdl2.c          |  8 ++++----\n ui/sdl_zoom.c      |  3 ++-\n ui/shader.c        |  8 ++++----\n ui/spice-display.c | 10 +++++-----\n ui/vnc-enc-tight.c |  4 ++--\n ui/vnc-enc-zlib.c  |  4 ++--\n ui/vnc-enc-zrle.c  |  4 ++--\n ui/vnc.c           |  2 +-\n 16 files changed, 48 insertions(+), 46 deletions(-)",
    "diff": "diff --git a/ui/cocoa.m b/ui/cocoa.m\nindex 93e56d0518..62c021c5d3 100644\n--- a/ui/cocoa.m\n+++ b/ui/cocoa.m\n@@ -235,7 +235,7 @@ const int mac_to_qkeycode_map[] = {\n static int cocoa_keycode_to_qemu(int keycode)\n {\n     if (ARRAY_SIZE(mac_to_qkeycode_map) <= keycode) {\n-        fprintf(stderr, \"(cocoa) warning unknown keycode 0x%x\\n\", keycode);\n+        error_report(\"(cocoa) warning unknown keycode 0x%x\", keycode);\n         return 0;\n     }\n     return mac_to_qkeycode_map[keycode];\n@@ -908,7 +908,7 @@ QemuCocoaView *cocoaView;\n         // create a view and add it to the window\n         cocoaView = [[QemuCocoaView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 640.0, 480.0)];\n         if(!cocoaView) {\n-            fprintf(stderr, \"(cocoa) can't create a view\\n\");\n+            error_report(\"(cocoa) can't create a view\");\n             exit(1);\n         }\n \n@@ -917,7 +917,7 @@ QemuCocoaView *cocoaView;\n             styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskMiniaturizable|NSWindowStyleMaskClosable\n             backing:NSBackingStoreBuffered defer:NO];\n         if(!normalWindow) {\n-            fprintf(stderr, \"(cocoa) can't create window\\n\");\n+            error_report(\"(cocoa) can't create window\");\n             exit(1);\n         }\n         [normalWindow setAcceptsMouseMovedEvents:YES];\ndiff --git a/ui/console.c b/ui/console.c\nindex b82c27960a..56d0ebcb50 100644\n--- a/ui/console.c\n+++ b/ui/console.c\n@@ -1417,7 +1417,7 @@ void register_displaychangelistener(DisplayChangeListener *dcl)\n         /* display has opengl support */\n         assert(dcl->con);\n         if (dcl->con->gl) {\n-            fprintf(stderr, \"can't register two opengl displays (%s, %s)\\n\",\n+            error_report(\"can't register two opengl displays (%s, %s)\",\n                     dcl->ops->dpy_name, dcl->con->gl->ops->dpy_name);\n             exit(1);\n         }\ndiff --git a/ui/curses.c b/ui/curses.c\nindex 03cefdf470..06784ec7f0 100644\n--- a/ui/curses.c\n+++ b/ui/curses.c\n@@ -423,7 +423,7 @@ void curses_display_init(DisplayState *ds, int full_screen)\n {\n #ifndef _WIN32\n     if (!isatty(1)) {\n-        fprintf(stderr, \"We need a terminal output\\n\");\n+        error_report(\"We need a terminal output\");\n         exit(1);\n     }\n #endif\ndiff --git a/ui/cursor.c b/ui/cursor.c\nindex f3da0cee79..9d847031ec 100644\n--- a/ui/cursor.c\n+++ b/ui/cursor.c\n@@ -18,12 +18,12 @@ static QEMUCursor *cursor_parse_xpm(const char *xpm[])\n     /* parse header line: width, height, #colors, #chars */\n     if (sscanf(xpm[line], \"%u %u %u %u\",\n                &width, &height, &colors, &chars) != 4) {\n-        fprintf(stderr, \"%s: header parse error: \\\"%s\\\"\\n\",\n-                __func__, xpm[line]);\n+        error_report(\"%s: header parse error: \\\"%s\\\"\",\n+                     __func__, xpm[line]);\n         return NULL;\n     }\n     if (chars != 1) {\n-        fprintf(stderr, \"%s: chars != 1 not supported\\n\", __func__);\n+        error_report(\"%s: chars != 1 not supported\", __func__);\n         return NULL;\n     }\n     line++;\n@@ -40,7 +40,7 @@ static QEMUCursor *cursor_parse_xpm(const char *xpm[])\n                 continue;\n             }\n         }\n-        fprintf(stderr, \"%s: color parse error: \\\"%s\\\"\\n\",\n+        error_report(\"%s: color parse error: \\\"%s\\\"\",\n                 __func__, xpm[line]);\n         return NULL;\n     }\n@@ -75,7 +75,7 @@ void cursor_print_ascii_art(QEMUCursor *c, const char *prefix)\n                 fprintf(stderr, \"o\"); /* other */\n             }\n         }\n-        fprintf(stderr, \"|\\n\");\n+        error_report(\"|\");\n     }\n }\n \ndiff --git a/ui/gtk.c b/ui/gtk.c\nindex 5bd87c265a..99477ea6e6 100644\n--- a/ui/gtk.c\n+++ b/ui/gtk.c\n@@ -1254,7 +1254,7 @@ static gboolean gd_win_grab(void *opaque)\n {\n     VirtualConsole *vc = opaque;\n \n-    fprintf(stderr, \"%s: %s\\n\", __func__, vc->label);\n+    error_report(\"%s: %s\", __func__, vc->label);\n     if (vc->s->ptr_owner) {\n         gd_ungrab_pointer(vc->s);\n     } else {\n@@ -2210,12 +2210,12 @@ static void gd_set_keycode_type(GtkDisplayState *s)\n             keycodes = XGetAtomName(x11_display, desc->names->keycodes);\n         }\n         if (keycodes == NULL) {\n-            fprintf(stderr, \"could not lookup keycode name\\n\");\n+            error_report(\"could not lookup keycode name\");\n         } else if (strstart(keycodes, \"evdev\", NULL)) {\n             s->has_evdev = true;\n         } else if (!strstart(keycodes, \"xfree86\", NULL)) {\n-            fprintf(stderr, \"unknown keycodes `%s', please report to \"\n-                    \"qemu-devel@nongnu.org\\n\", keycodes);\n+            error_report(\"unknown keycodes `%s', please report to \"\n+                    \"qemu-devel@nongnu.org\", keycodes);\n         }\n \n         if (desc) {\n@@ -2239,7 +2239,7 @@ void gtk_display_init(DisplayState *ds, bool full_screen, bool grab_on_hover)\n     GdkDisplay *window_display;\n \n     if (!gtkinit) {\n-        fprintf(stderr, \"gtk initialization failed\\n\");\n+        error_report(\"gtk initialization failed\");\n         exit(1);\n     }\n \ndiff --git a/ui/input-linux.c b/ui/input-linux.c\nindex 9720333b2c..edc5273476 100644\n--- a/ui/input-linux.c\n+++ b/ui/input-linux.c\n@@ -5,6 +5,7 @@\n  */\n \n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include \"qapi/error.h\"\n #include \"qemu-common.h\"\n #include \"qemu/config-file.h\"\n@@ -241,7 +242,7 @@ static void input_linux_event(void *opaque)\n         rc = read(il->fd, &p[il->read_offset], read_size);\n         if (rc != read_size) {\n             if (rc < 0 && errno != EAGAIN) {\n-                fprintf(stderr, \"%s: read: %s\\n\", __func__, strerror(errno));\n+                error_report(\"%s: read: %s\", __func__, strerror(errno));\n                 qemu_set_fd_handler(il->fd, NULL, NULL, NULL);\n                 close(il->fd);\n             } else if (rc > 0) {\ndiff --git a/ui/keymaps.c b/ui/keymaps.c\nindex f9762d1497..41c5e42553 100644\n--- a/ui/keymaps.c\n+++ b/ui/keymaps.c\n@@ -105,7 +105,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table,\n     f = filename ? fopen(filename, \"r\") : NULL;\n     g_free(filename);\n     if (!f) {\n-        fprintf(stderr, \"Could not read keymap file: '%s'\\n\", language);\n+        error_report(\"Could not read keymap file: '%s'\", language);\n         return NULL;\n     }\n \n@@ -150,7 +150,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table,\n                     if (strstr(rest, \"numlock\")) {\n                         add_to_key_range(&k->keypad_range, keycode);\n                         add_to_key_range(&k->numlock_range, keysym);\n-                        /* fprintf(stderr, \"keypad keysym %04x keycode %d\\n\",\n+                        /* error_report(\"keypad keysym %04x keycode %d\",\n                                    keysym, keycode); */\n                     }\n \ndiff --git a/ui/sdl.c b/ui/sdl.c\nindex 7b71a9ac58..29db4c68ad 100644\n--- a/ui/sdl.c\n+++ b/ui/sdl.c\n@@ -91,7 +91,7 @@ static void sdl_update(DisplayChangeListener *dcl,\n             SDL_BlitSurface(guest_screen, &rec, real_screen, &rec);\n         } else {\n             if (sdl_zoom_blit(guest_screen, real_screen, SMOOTHING_ON, &rec) < 0) {\n-                fprintf(stderr, \"Zoom blit failed\\n\");\n+                error_report(\"Zoom blit failed\");\n                 exit(1);\n             }\n         }\n@@ -120,7 +120,7 @@ static void do_sdl_resize(int width, int height, int bpp)\n     tmp_screen = SDL_SetVideoMode(width, height, bpp, flags);\n     if (!real_screen) {\n         if (!tmp_screen) {\n-            fprintf(stderr, \"Could not open SDL display (%dx%dx%d): %s\\n\",\n+            error_report(\"Could not open SDL display (%dx%dx%d): %s\",\n                     width, height, bpp, SDL_GetError());\n             exit(1);\n         }\n@@ -130,7 +130,7 @@ static void do_sdl_resize(int width, int height, int bpp)\n          * resolution failed.\n          */\n         if (!tmp_screen) {\n-            fprintf(stderr, \"Failed to set SDL display (%dx%dx%d): %s\\n\",\n+            error_report(\"Failed to set SDL display (%dx%dx%d): %s\",\n                     width, height, bpp, SDL_GetError());\n             return;\n         }\n@@ -241,12 +241,12 @@ static int check_for_evdev(void)\n                      XkbKeycodesNameMask, desc) == Success)) {\n         keycodes = XGetAtomName(info.info.x11.display, desc->names->keycodes);\n         if (keycodes == NULL) {\n-            fprintf(stderr, \"could not lookup keycode name\\n\");\n+            error_report(\"could not lookup keycode name\");\n         } else if (strstart(keycodes, \"evdev\", NULL)) {\n             has_evdev = 1;\n         } else if (!strstart(keycodes, \"xfree86\", NULL)) {\n-            fprintf(stderr, \"unknown keycodes `%s', please report to \"\n-                    \"qemu-devel@nongnu.org\\n\", keycodes);\n+            error_report(\"unknown keycodes `%s', please report to \"\n+                    \"qemu-devel@nongnu.org\", keycodes);\n         }\n     }\n \n@@ -988,7 +988,7 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)\n \n     flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE;\n     if (SDL_Init (flags)) {\n-        fprintf(stderr, \"Could not initialize SDL(%s) - exiting\\n\",\n+        error_report(\"Could not initialize SDL(%s) - exiting\",\n                 SDL_GetError());\n         exit(1);\n     }\ndiff --git a/ui/sdl2.c b/ui/sdl2.c\nindex 53dd447fd2..f6700e70f5 100644\n--- a/ui/sdl2.c\n+++ b/ui/sdl2.c\n@@ -400,7 +400,7 @@ static void handle_keydown(SDL_Event *ev)\n                             160);\n                 height = (surface_height(scon->surface) * width) /\n                     surface_width(scon->surface);\n-                fprintf(stderr, \"%s: scale to %dx%d\\n\",\n+                error_report(\"%s: scale to %dx%d\",\n                         __func__, width, height);\n                 sdl_scale(scon, width, height);\n                 sdl2_redraw(scon);\n@@ -686,13 +686,13 @@ static void sdl_mouse_define(DisplayChangeListener *dcl,\n                                  0xff0000, 0x00ff00, 0xff, 0xff000000);\n \n     if (!guest_sprite_surface) {\n-        fprintf(stderr, \"Failed to make rgb surface from %p\\n\", c);\n+        error_report(\"Failed to make rgb surface from %p\", c);\n         return;\n     }\n     guest_sprite = SDL_CreateColorCursor(guest_sprite_surface,\n                                          c->hot_x, c->hot_y);\n     if (!guest_sprite) {\n-        fprintf(stderr, \"Failed to make color cursor from %p\\n\", c);\n+        error_report(\"Failed to make color cursor from %p\", c);\n         return;\n     }\n     if (guest_cursor &&\n@@ -783,7 +783,7 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)\n \n     flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE;\n     if (SDL_Init(flags)) {\n-        fprintf(stderr, \"Could not initialize SDL(%s) - exiting\\n\",\n+        error_report(\"Could not initialize SDL(%s) - exiting\",\n                 SDL_GetError());\n         exit(1);\n     }\ndiff --git a/ui/sdl_zoom.c b/ui/sdl_zoom.c\nindex b96196bac5..bf73d1f1f9 100644\n--- a/ui/sdl_zoom.c\n+++ b/ui/sdl_zoom.c\n@@ -12,6 +12,7 @@\n  */\n \n #include \"qemu/osdep.h\"\n+#include \"qemu/error-report.h\"\n #include \"sdl_zoom.h\"\n \n static void sdl_zoom_rgb16(SDL_Surface *src, SDL_Surface *dst, int smooth,\n@@ -81,7 +82,7 @@ int sdl_zoom_blit(SDL_Surface *src_sfc, SDL_Surface *dst_sfc, int smooth,\n     else if (src_sfc->format->BitsPerPixel == 16)\n         sdl_zoom_rgb16(src_sfc, dst_sfc, smooth, &zoom);\n     else {\n-        fprintf(stderr, \"pixel format not supported\\n\");\n+        error_report(\"pixel format not supported\");\n         return -1;\n     }\n \ndiff --git a/ui/shader.c b/ui/shader.c\nindex 1ffddbef3b..5c6fafe55d 100644\n--- a/ui/shader.c\n+++ b/ui/shader.c\n@@ -85,9 +85,9 @@ GLuint qemu_gl_create_compile_shader(GLenum type, const GLchar *src)\n         glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &length);\n         errmsg = g_malloc(length);\n         glGetShaderInfoLog(shader, length, &length, errmsg);\n-        fprintf(stderr, \"%s: compile %s error\\n%s\\n\", __func__,\n-                (type == GL_VERTEX_SHADER) ? \"vertex\" : \"fragment\",\n-                errmsg);\n+        error_report(\"%s: compile %s error: %s\", __func__,\n+                     (type == GL_VERTEX_SHADER) ? \"vertex\" : \"fragment\",\n+                     errmsg);\n         g_free(errmsg);\n         return 0;\n     }\n@@ -110,7 +110,7 @@ GLuint qemu_gl_create_link_program(GLuint vert, GLuint frag)\n         glGetProgramiv(program, GL_INFO_LOG_LENGTH, &length);\n         errmsg = g_malloc(length);\n         glGetProgramInfoLog(program, length, &length, errmsg);\n-        fprintf(stderr, \"%s: link program: %s\\n\", __func__, errmsg);\n+        error_report(\"%s: link program: %s\", __func__, errmsg);\n         g_free(errmsg);\n         return 0;\n     }\ndiff --git a/ui/spice-display.c b/ui/spice-display.c\nindex 346fff44f4..8cf126e7b0 100644\n--- a/ui/spice-display.c\n+++ b/ui/spice-display.c\n@@ -630,13 +630,13 @@ static int interface_req_cursor_notification(QXLInstance *sin)\n \n static void interface_notify_update(QXLInstance *sin, uint32_t update_id)\n {\n-    fprintf(stderr, \"%s: abort()\\n\", __func__);\n+    error_report(\"%s: abort()\", __func__);\n     abort();\n }\n \n static int interface_flush_resources(QXLInstance *sin)\n {\n-    fprintf(stderr, \"%s: abort()\\n\", __func__);\n+    error_report(\"%s: abort()\", __func__);\n     abort();\n     return 0;\n }\n@@ -646,7 +646,7 @@ static void interface_update_area_complete(QXLInstance *sin,\n         QXLRect *dirty, uint32_t num_updated_rects)\n {\n     /* should never be called, used in qxl native mode only */\n-    fprintf(stderr, \"%s: abort()\\n\", __func__);\n+    error_report(\"%s: abort()\", __func__);\n     abort();\n }\n \n@@ -671,7 +671,7 @@ static void interface_async_complete(QXLInstance *sin, uint64_t cookie_token)\n #endif\n     default:\n         /* should never be called, used in qxl native mode only */\n-        fprintf(stderr, \"%s: abort()\\n\", __func__);\n+        error_report(\"%s: abort()\", __func__);\n         abort();\n     }\n     g_free(cookie);\n@@ -955,7 +955,7 @@ static void qemu_spice_gl_scanout_texture(DisplayChangeListener *dcl,\n     assert(tex_id);\n     fd = egl_get_fd_for_texture(tex_id, &stride, &fourcc);\n     if (fd < 0) {\n-        fprintf(stderr, \"%s: failed to get fd for texture\\n\", __func__);\n+        error_report(\"%s: failed to get fd for texture\", __func__);\n         return;\n     }\n     dprint(1, \"%s: %dx%d (stride %d, fourcc 0x%x)\\n\", __func__,\ndiff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c\nindex f38aceb4da..7ac957057d 100644\n--- a/ui/vnc-enc-tight.c\n+++ b/ui/vnc-enc-tight.c\n@@ -800,7 +800,7 @@ static int tight_init_stream(VncState *vs, int stream_id,\n                            MAX_MEM_LEVEL, strategy);\n \n         if (err != Z_OK) {\n-            fprintf(stderr, \"VNC: error initializing zlib\\n\");\n+            error_report(\"VNC: error initializing zlib\");\n             return -1;\n         }\n \n@@ -865,7 +865,7 @@ static int tight_compress_data(VncState *vs, int stream_id, size_t bytes,\n \n     /* start encoding */\n     if (deflate(zstream, Z_SYNC_FLUSH) != Z_OK) {\n-        fprintf(stderr, \"VNC: error during tight compression\\n\");\n+        error_report(\"VNC: error during tight compression\");\n         return -1;\n     }\n \ndiff --git a/ui/vnc-enc-zlib.c b/ui/vnc-enc-zlib.c\nindex 33e9df2f6a..437cfb1307 100644\n--- a/ui/vnc-enc-zlib.c\n+++ b/ui/vnc-enc-zlib.c\n@@ -80,7 +80,7 @@ static int vnc_zlib_stop(VncState *vs)\n                            MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY);\n \n         if (err != Z_OK) {\n-            fprintf(stderr, \"VNC: error initializing zlib\\n\");\n+            error_report(\"VNC: error initializing zlib\");\n             return -1;\n         }\n \n@@ -109,7 +109,7 @@ static int vnc_zlib_stop(VncState *vs)\n \n     // start encoding\n     if (deflate(zstream, Z_SYNC_FLUSH) != Z_OK) {\n-        fprintf(stderr, \"VNC: error during zlib compression\\n\");\n+        error_report(\"VNC: error during zlib compression\");\n         return -1;\n     }\n \ndiff --git a/ui/vnc-enc-zrle.c b/ui/vnc-enc-zrle.c\nindex fd63d4f688..a3af8a1c5d 100644\n--- a/ui/vnc-enc-zrle.c\n+++ b/ui/vnc-enc-zrle.c\n@@ -85,7 +85,7 @@ static int zrle_compress_data(VncState *vs, int level)\n                            MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY);\n \n         if (err != Z_OK) {\n-            fprintf(stderr, \"VNC: error initializing zlib\\n\");\n+            error_report(\"VNC: error initializing zlib\");\n             return -1;\n         }\n \n@@ -104,7 +104,7 @@ static int zrle_compress_data(VncState *vs, int level)\n \n     /* start encoding */\n     if (deflate(zstream, Z_SYNC_FLUSH) != Z_OK) {\n-        fprintf(stderr, \"VNC: error during zrle compression\\n\");\n+        error_report(\"VNC: error during zrle compression\");\n         return -1;\n     }\n \ndiff --git a/ui/vnc.c b/ui/vnc.c\nindex 0b5dbc62e4..2bad9ab971 100644\n--- a/ui/vnc.c\n+++ b/ui/vnc.c\n@@ -71,7 +71,7 @@ static void vnc_set_share_mode(VncState *vs, VncShareMode mode)\n         [VNC_SHARE_MODE_EXCLUSIVE]    = \"exclusive\",\n         [VNC_SHARE_MODE_DISCONNECTED] = \"disconnected\",\n     };\n-    fprintf(stderr, \"%s/%p: %s -> %s\\n\", __func__,\n+    error_report(\"%s/%p: %s -> %s\", __func__,\n             vs->ioc, mn[vs->share_mode], mn[mode]);\n #endif\n \n",
    "prefixes": [
        "v1",
        "6/8"
    ]
}