Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/961279/?format=api
{ "id": 961279, "url": "http://patchwork.ozlabs.org/api/patches/961279/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180823104334.16083-4-jens.wiklander@linaro.org/", "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": "<20180823104334.16083-4-jens.wiklander@linaro.org>", "list_archive_url": null, "date": "2018-08-23T10:43:22", "name": "[U-Boot,v2,03/15] cmd: avb: print error message if command fails", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "8d8e2a6ed30a9be063b134c0963d7980a6adb770", "submitter": { "id": 66201, "url": "http://patchwork.ozlabs.org/api/people/66201/?format=api", "name": "Jens Wiklander", "email": "jens.wiklander@linaro.org" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20180823104334.16083-4-jens.wiklander@linaro.org/mbox/", "series": [ { "id": 62144, "url": "http://patchwork.ozlabs.org/api/series/62144/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=62144", "date": "2018-08-23T10:43:19", "name": "AVB using OP-TEE", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/62144/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/961279/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/961279/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>)", "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=linaro.org", "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"WUicBSLR\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 41x1L51scBz9s3C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 23 Aug 2018 20:46:21 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid F077BC21ECA; Thu, 23 Aug 2018 10:45:58 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 6C67CC21F32;\n\tThu, 23 Aug 2018 10:43:59 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 61041C21F1B; Thu, 23 Aug 2018 10:43:50 +0000 (UTC)", "from mail-lf1-f46.google.com (mail-lf1-f46.google.com\n\t[209.85.167.46])\n\tby lists.denx.de (Postfix) with ESMTPS id 2B649C21EE4\n\tfor <u-boot@lists.denx.de>; Thu, 23 Aug 2018 10:43:45 +0000 (UTC)", "by mail-lf1-f46.google.com with SMTP id r4-v6so3688066lff.12\n\tfor <u-boot@lists.denx.de>; Thu, 23 Aug 2018 03:43:45 -0700 (PDT)", "from jax.ideon.se ([85.235.10.227])\n\tby smtp.gmail.com with ESMTPSA id\n\ty5-v6sm679771ljj.75.2018.08.23.03.43.43\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 23 Aug 2018 03:43:43 -0700 (PDT)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=Lw0wZrCdsaedqJ77wj0I9x8SVXR1t3HaUgBcOOZU8ok=;\n\tb=WUicBSLRbgsrnVCgdrmmwADs5f678K6ikdA3V6lcPskM7ck2RaZLewecXjsj46ikqH\n\tsZWx097xLWsOI2XIX6e8qwmT3gmmnTlUTQNK+uI8oCWTxc7Ub2kJVJcCYaET4Yv65nL9\n\teL98ArLYeScR+0fEuQPRtcM6FqKTDjTcCtwEY=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Lw0wZrCdsaedqJ77wj0I9x8SVXR1t3HaUgBcOOZU8ok=;\n\tb=f8kf44XTQidO4qPOO6G1DmaDPljAUEck5R+OVacl9F4fdsiSUuNJphlDVwMOrcNfzd\n\tzl+T4S9zXTKiNLiYb2VwG6eZPRg3CG/0naaZbfcyJBSNib3msk3LCDSW/1zk2BjB4eYI\n\tntlZtBvOylMHjPGcNSt/vuxKepO1w3zX10UiuQXhSFPdW2owbhuhXTSFwCHqRDoVjMD1\n\ty/7W/yAaFaXOhwVXlk4L4ZtPld7BDb5nSGOJHZByKEw/faUNfL+KcvbxCuIoGZnYafK6\n\tR7qgA/lxbmOwIdpdvVVHCbULczqqBfzA6knpkLKVff++FpKG0vMivpB3F0WyX7vyR2q2\n\tQOAA==", "X-Gm-Message-State": "AOUpUlHfjX0FbUVMYWSlbOftgoVHyuNZFhCh76m5chxhEe7ufP7eF4ul\n\tuWxxChsbFJs8h20ooOOHwuA+087lQhQ=", "X-Google-Smtp-Source": "AA+uWPy26S0tj9EAY5oYU8MHbugb8d5gwB91v4NZpWRm03alzKXW3SDFRzTr1bs3gPiLqr3b0IV/Dg==", "X-Received": "by 2002:a19:a401:: with SMTP id\n\tq1-v6mr11124709lfc.111.1535021024430; \n\tThu, 23 Aug 2018 03:43:44 -0700 (PDT)", "From": "Jens Wiklander <jens.wiklander@linaro.org>", "To": "u-boot@lists.denx.de", "Date": "Thu, 23 Aug 2018 12:43:22 +0200", "Message-Id": "<20180823104334.16083-4-jens.wiklander@linaro.org>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20180823104334.16083-1-jens.wiklander@linaro.org>", "References": "<20180823104334.16083-1-jens.wiklander@linaro.org>", "Cc": "Tom Rini <trini@konsulko.com>, Pierre Aubert <p.aubert@staubli.com>", "Subject": "[U-Boot] [PATCH v2 03/15] cmd: avb: print error message if command\n\tfails", "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": "Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>\n---\n cmd/avb.c | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)", "diff": "diff --git a/cmd/avb.c b/cmd/avb.c\nindex ca4b26d5d7b3..ff00be4cee38 100644\n--- a/cmd/avb.c\n+++ b/cmd/avb.c\n@@ -35,6 +35,8 @@ int do_avb_init(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \tif (avb_ops)\n \t\treturn CMD_RET_SUCCESS;\n \n+\tprintf(\"Failed to initialize avb2\\n\");\n+\n \treturn CMD_RET_FAILURE;\n }\n \n@@ -65,6 +67,8 @@ int do_avb_read_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \t\treturn CMD_RET_SUCCESS;\n \t}\n \n+\tprintf(\"Failed to read from partition\\n\");\n+\n \treturn CMD_RET_FAILURE;\n }\n \n@@ -108,6 +112,8 @@ int do_avb_read_part_hex(cmd_tbl_t *cmdtp, int flag, int argc,\n \t\treturn CMD_RET_SUCCESS;\n \t}\n \n+\tprintf(\"Failed to read from partition\\n\");\n+\n \tfree(buffer);\n \treturn CMD_RET_FAILURE;\n }\n@@ -138,6 +144,8 @@ int do_avb_write_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \t\treturn CMD_RET_SUCCESS;\n \t}\n \n+\tprintf(\"Failed to write in partition\\n\");\n+\n \treturn CMD_RET_FAILURE;\n }\n \n@@ -161,6 +169,9 @@ int do_avb_read_rb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \t\tprintf(\"Rollback index: %llx\\n\", rb_idx);\n \t\treturn CMD_RET_SUCCESS;\n \t}\n+\n+\tprintf(\"Failed to read rollback index\\n\");\n+\n \treturn CMD_RET_FAILURE;\n }\n \n@@ -184,6 +195,8 @@ int do_avb_write_rb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \t AVB_IO_RESULT_OK)\n \t\treturn CMD_RET_SUCCESS;\n \n+\tprintf(\"Failed to write rollback index\\n\");\n+\n \treturn CMD_RET_FAILURE;\n }\n \n@@ -210,6 +223,8 @@ int do_avb_get_uuid(cmd_tbl_t *cmdtp, int flag,\n \t\treturn CMD_RET_SUCCESS;\n \t}\n \n+\tprintf(\"Failed to read UUID\\n\");\n+\n \treturn CMD_RET_FAILURE;\n }\n \n@@ -320,6 +335,8 @@ int do_avb_is_unlocked(cmd_tbl_t *cmdtp, int flag,\n \t\treturn CMD_RET_SUCCESS;\n \t}\n \n+\tprintf(\"Can't determine device lock state.\\n\");\n+\n \treturn CMD_RET_FAILURE;\n }\n \n", "prefixes": [ "U-Boot", "v2", "03/15" ] }