Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/803320/?format=api
{ "id": 803320, "url": "http://patchwork.ozlabs.org/api/patches/803320/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170818154516.12375-1-xypron.glpk@gmx.de/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170818154516.12375-1-xypron.glpk@gmx.de>", "list_archive_url": null, "date": "2017-08-18T15:45:16", "name": "[U-Boot,v4,1/1] efi_loader: write protocol GUID in OpenProtocol", "commit_ref": "ae0bd3a983023aeb48b4ab3f417e5a62f8f72c37", "pull_url": null, "state": "accepted", "archived": false, "hash": "9ce986254b5763d7c14902719c762e1d27462a14", "submitter": { "id": 61270, "url": "http://patchwork.ozlabs.org/api/people/61270/?format=api", "name": "Heinrich Schuchardt", "email": "xypron.glpk@gmx.de" }, "delegate": { "id": 3400, "url": "http://patchwork.ozlabs.org/api/users/3400/?format=api", "username": "agraf", "first_name": "Alexander", "last_name": "Graf", "email": "agraf@suse.de" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170818154516.12375-1-xypron.glpk@gmx.de/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/803320/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/803320/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)", "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xYnVF22wKz9sQl\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 19 Aug 2017 01:45:41 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid E8D9DC21FD3; Fri, 18 Aug 2017 15:45:38 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id C2415C21DA9;\n\tFri, 18 Aug 2017 15:45:36 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 92359C21DA9; Fri, 18 Aug 2017 15:45:35 +0000 (UTC)", "from mout.gmx.net (mout.gmx.net [212.227.15.18])\n\tby lists.denx.de (Postfix) with ESMTPS id 49053C21D90\n\tfor <u-boot@lists.denx.de>; Fri, 18 Aug 2017 15:45:35 +0000 (UTC)", "from workstation4.fritz.box ([84.118.154.110]) by mail.gmx.com\n\t(mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id\n\t0LvV1X-1dZLSg3Slf-010gjc; Fri, 18 Aug 2017 17:45:33 +0200" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-0.7 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_LOW,\n\tRCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no\n\tversion=3.4.0", "From": "Heinrich Schuchardt <xypron.glpk@gmx.de>", "To": "Alexander Graf <agraf@suse.de>", "Date": "Fri, 18 Aug 2017 17:45:16 +0200", "Message-Id": "<20170818154516.12375-1-xypron.glpk@gmx.de>", "X-Mailer": "git-send-email 2.11.0", "X-Provags-ID": "V03:K0:+i9nouKIuMjaK5IkaU0OHEczitvi4zaA23Q46SS91IPq3xVJcHH\n\tbqdHnlSWAImar438d8th8s0WPyDIk0J9VVPEBS71GUxK4EZCkqpJfDTGUGTcQ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ich Schuchardt <xypron.glpk@gmx.de>", "Subject": "[U-Boot] [PATCH v4 1/1] efi_loader: write protocol GUID in\n\tOpenProtocol", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.18", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>" }, "content": "To understand what is happening in OpenProtocol or LocateProtocol\nit is necessary to know the protocol interface GUID.\nLet's write a debug message.\n\nCc: Rob Clark <robdclark@gmail.com>\nSigned-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>\n---\nv4:\n\tuse %pUl format string\n\tcorrect indention of output\nv3:\n\tcommit message changed\nv2:\n\tfix typo in commit message\n---\n include/efi_loader.h | 8 ++++++++\n lib/efi_loader/efi_boottime.c | 11 +++++++++++\n 2 files changed, 19 insertions(+)", "diff": "diff --git a/include/efi_loader.h b/include/efi_loader.h\nindex 870854fb61..5b20af808b 100644\n--- a/include/efi_loader.h\n+++ b/include/efi_loader.h\n@@ -17,6 +17,7 @@\n \n int __efi_entry_check(void);\n int __efi_exit_check(void);\n+const char *__efi_nesting(void);\n const char *__efi_nesting_inc(void);\n const char *__efi_nesting_dec(void);\n \n@@ -64,6 +65,13 @@ const char *__efi_nesting_dec(void);\n \tdebug(\"%sEFI: Return From: %s\\n\", __efi_nesting_dec(), #exp); \\\n \t} while(0)\n \n+/*\n+ * Write GUID\n+ */\n+#define EFI_PRINT_GUID(txt, guid) ({ \\\n+\tdebug(\"%sEFI: %s %pUl\\n\", __efi_nesting(), txt, guid); \\\n+\t})\n+\n extern struct efi_runtime_services efi_runtime_services;\n extern struct efi_system_table systab;\n \ndiff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c\nindex 5aeaeeca75..6af033458b 100644\n--- a/lib/efi_loader/efi_boottime.c\n+++ b/lib/efi_loader/efi_boottime.c\n@@ -112,6 +112,11 @@ static const char *indent_string(int level)\n \treturn &indent[max - level];\n }\n \n+const char *__efi_nesting(void)\n+{\n+\treturn indent_string(nesting_level);\n+}\n+\n const char *__efi_nesting_inc(void)\n {\n \treturn indent_string(nesting_level++);\n@@ -1163,6 +1170,8 @@ static efi_status_t EFIAPI efi_locate_protocol(efi_guid_t *protocol,\n \tif (!protocol || !protocol_interface)\n \t\treturn EFI_EXIT(EFI_INVALID_PARAMETER);\n \n+\tEFI_PRINT_GUID(\"protocol\", protocol);\n+\n \tlist_for_each(lhandle, &efi_obj_list) {\n \t\tstruct efi_object *efiobj;\n \n@@ -1366,6 +1375,8 @@ static efi_status_t EFIAPI efi_open_protocol(\n \t\tgoto out;\n \t}\n \n+\tEFI_PRINT_GUID(\"protocol\", protocol);\n+\n \tswitch (attributes) {\n \tcase EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL:\n \tcase EFI_OPEN_PROTOCOL_GET_PROTOCOL:\n", "prefixes": [ "U-Boot", "v4", "1/1" ] }