Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110125/?format=api
{ "id": 110125, "url": "http://patchwork.ozlabs.org/api/patches/110125/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1313462527-3876-1-git-send-email-agnel.joel@gmail.com/", "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": "<1313462527-3876-1-git-send-email-agnel.joel@gmail.com>", "list_archive_url": null, "date": "2011-08-16T02:42:01", "name": "[U-Boot,1/7] Corrected LED name match finding avoiding extraneous Usage printouts", "commit_ref": "95492d784b6167a5de47f7aae691646e99f5b623", "pull_url": null, "state": "accepted", "archived": false, "hash": "09e4b4b3652f46e9ce7c3f3930a4a1892828b412", "submitter": { "id": 8387, "url": "http://patchwork.ozlabs.org/api/people/8387/?format=api", "name": "Joel Fernandes", "email": "agnel.joel@gmail.com" }, "delegate": { "id": 1713, "url": "http://patchwork.ozlabs.org/api/users/1713/?format=api", "username": "spaulraj", "first_name": "Sandeep", "last_name": "Paulraj", "email": "s-paulraj@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1313462527-3876-1-git-send-email-agnel.joel@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/110125/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/110125/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", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 0F72CB6F77\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 16 Aug 2011 12:43:46 +1000 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id DECBB2808D;\n\tTue, 16 Aug 2011 04:43:43 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id PhvyRX1ZaowQ; Tue, 16 Aug 2011 04:43:43 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 2524F28084;\n\tTue, 16 Aug 2011 04:43:42 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id F081028084\n\tfor <u-boot@lists.denx.de>; Tue, 16 Aug 2011 04:43:39 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id BJMTi1wRiDJG for <u-boot@lists.denx.de>;\n\tTue, 16 Aug 2011 04:43:39 +0200 (CEST)", "from mail-gx0-f172.google.com (mail-gx0-f172.google.com\n\t[209.85.161.172])\n\tby theia.denx.de (Postfix) with ESMTPS id 3C49B28083\n\tfor <u-boot@lists.denx.de>; Tue, 16 Aug 2011 04:43:36 +0200 (CEST)", "by gxk19 with SMTP id 19so3321799gxk.3\n\tfor <u-boot@lists.denx.de>; Mon, 15 Aug 2011 19:43:35 -0700 (PDT)", "by 10.91.17.29 with SMTP id u29mr4611878agi.152.1313462614858;\n\tMon, 15 Aug 2011 19:43:34 -0700 (PDT)", "from localhost.localdomain\n\t(ip65-46-142-190.z142-46-65.customer.algx.net [65.46.142.190])\n\tby mx.google.com with ESMTPS id t11sm2208874and.3.2011.08.15.19.42.53\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tMon, 15 Aug 2011 19:43:34 -0700 (PDT)" ], "X-Virus-Scanned": [ "Debian amavisd-new at theia.denx.de", "Debian amavisd-new at theia.denx.de" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "From": "Joel A Fernandes <agnel.joel@gmail.com>", "To": "u-boot@lists.denx.de", "Date": "Mon, 15 Aug 2011 21:42:01 -0500", "Message-Id": "<1313462527-3876-1-git-send-email-agnel.joel@gmail.com>", "X-Mailer": "git-send-email 1.7.1", "Cc": "Koen Kooi <koen@dominion.thruhere.net>,\n\tSyed Mohammed Khasim <khasim@ti.com>, k-kooi@ti.com, jdk@ti.com", "Subject": "[U-Boot] [PATCH 1/7] Corrected LED name match finding avoiding\n\textraneous Usage printouts", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.9", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/listinfo/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": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "From: Jason Kridner <jkridner@beagleboard.org>\n\nSigned-off-by: Jason Kridner <jkridner@beagleboard.org>\nSigned-off-by: Koen Kooi <koen@dominion.thruhere.net>\nSigned-off-by: Joel A Fernandes <agnel.joel@gmail.com>\n---\n common/cmd_led.c | 5 +++--\n 1 files changed, 3 insertions(+), 2 deletions(-)", "diff": "diff --git a/common/cmd_led.c b/common/cmd_led.c\nindex c53195f..8b46848 100644\n--- a/common/cmd_led.c\n+++ b/common/cmd_led.c\n@@ -83,7 +83,7 @@ int str_onoff (char *var)\n \n int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n {\n-\tint state, i;\n+\tint state, i, match = 0;\n \n \t/* Validate arguments */\n \tif ((argc != 3)) {\n@@ -98,6 +98,7 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \tfor (i = 0; led_commands[i].string; i++) {\n \t\tif ((strcmp(\"all\", argv[1]) == 0) ||\n \t\t (strcmp(led_commands[i].string, argv[1]) == 0)) {\n+\t\t \tmatch = 1;\n \t\t\tif (led_commands[i].on) {\n \t\t\t\tif (state) {\n \t\t\t\t\tled_commands[i].on();\n@@ -112,7 +113,7 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])\n \t}\n \n \t/* If we ran out of matches, print Usage */\n-\tif (!led_commands[i].string && !(strcmp(\"all\", argv[1]) == 0)) {\n+\tif (!match) {\n \t\treturn cmd_usage(cmdtp);\n \t}\n \n", "prefixes": [ "U-Boot", "1/7" ] }