Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/965476/?format=api
{ "id": 965476, "url": "http://patchwork.ozlabs.org/api/patches/965476/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20180903144711.31585-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": "<20180903144711.31585-4-jens.wiklander@linaro.org>", "list_archive_url": null, "date": "2018-09-03T14:46:54", "name": "[U-Boot,v3,03/20] 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/20180903144711.31585-4-jens.wiklander@linaro.org/mbox/", "series": [ { "id": 63875, "url": "http://patchwork.ozlabs.org/api/series/63875/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=63875", "date": "2018-09-03T14:46:51", "name": "AVB using OP-TEE", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/63875/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/965476/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/965476/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=\"bdS2U6W9\"; dkim-atps=neutral" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 423tDG5QKwz9sB4\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 4 Sep 2018 00:50:06 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 779D3C21E7D; Mon, 3 Sep 2018 14:48:39 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 50938C21ECF;\n\tMon, 3 Sep 2018 14:47:37 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 2C209C21EBE; Mon, 3 Sep 2018 14:47:29 +0000 (UTC)", "from mail-lj1-f172.google.com (mail-lj1-f172.google.com\n\t[209.85.208.172])\n\tby lists.denx.de (Postfix) with ESMTPS id E1C0BC21E47\n\tfor <u-boot@lists.denx.de>; Mon, 3 Sep 2018 14:47:23 +0000 (UTC)", "by mail-lj1-f172.google.com with SMTP id f1-v6so660448ljc.9\n\tfor <u-boot@lists.denx.de>; Mon, 03 Sep 2018 07:47:23 -0700 (PDT)", "from jax.ideon.se ([85.235.10.227])\n\tby smtp.gmail.com with ESMTPSA id\n\tw18-v6sm3343431ljd.73.2018.09.03.07.47.21\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 03 Sep 2018 07:47:22 -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=T_DKIM_INVALID\n\tautolearn=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=h6g+h+ZtnoYTDzdxUc+VajLlQroiy/9mFI7V8zec+L0=;\n\tb=bdS2U6W9BvJ5G+uj1zd2oPxOI8j7ddbGtL3QM0os2NjSj/Ufhq2PmrVHuZYHqIphci\n\trKdY24dIBITlMYUcZMB/EEpbANUcGMUgxow+hRalRjdp8odZZJRfg9O9Ec2eIvhuiObt\n\tZKoQQ0uV77KNzBn041qzjbMxtOeVZnYGzaqXI=", "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=h6g+h+ZtnoYTDzdxUc+VajLlQroiy/9mFI7V8zec+L0=;\n\tb=DBYbO4U+ZVqAwx7nBI5aIZ+GCmOktsas9ZpBGeIXqI3RzWHvZmhzAceNJaM4gcLjLl\n\txDZnBohQAU2AAte35MIUD4tZBwA2V7HU6XHM6sQOLoglrGv/+D7MFpAPj0DU68F387wE\n\thgf98kAJg2qVSKBiHq62lbRmu+JxABESATKsDr9cTFbiuTyMmRdRhzJfOwOm1VPDores\n\tjrms5St89QNsUg+Hv/TBPwyg4MeYf7LC6krO3g+g33055zr6y/H0yenhLjDufi7Jos6m\n\t35oaZFImUGbg+iep95G8bjTPBeWHuwV9uNbKUdGsRNcyZMTf6qadIXsLDqc//JzIYYFu\n\tAw7g==", "X-Gm-Message-State": "APzg51AcaeNGMFt51SimUfOIlQbsllN/Uqr8hZ7iriIfmuYTZ6dTYJ2d\n\t+N6dJFA4BDlysmSNYHRYHd4MNfuhls8=", "X-Google-Smtp-Source": "ANB0VdZPX4LbUIvAGwEvM4XblKfAcOih+j72zizr4CcneGZ8HN8EvDMnYAvMQ8V4o2yEgT5YjHwezg==", "X-Received": "by 2002:a2e:990b:: with SMTP id\n\tv11-v6mr17578691lji.87.1535986043117; \n\tMon, 03 Sep 2018 07:47:23 -0700 (PDT)", "From": "Jens Wiklander <jens.wiklander@linaro.org>", "To": "u-boot@lists.denx.de", "Date": "Mon, 3 Sep 2018 16:46:54 +0200", "Message-Id": "<20180903144711.31585-4-jens.wiklander@linaro.org>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20180903144711.31585-1-jens.wiklander@linaro.org>", "References": "<20180903144711.31585-1-jens.wiklander@linaro.org>", "Cc": "Tom Rini <trini@konsulko.com>, Pierre Aubert <p.aubert@staubli.com>", "Subject": "[U-Boot] [PATCH v3 03/20] 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": "Reviewed-by: Simon Glass <sjg@chromium.org>\nSigned-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", "v3", "03/20" ] }