Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/199/?format=api
{ "id": 199, "url": "http://patchwork.ozlabs.org/api/patches/199/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/1220848151-22376-1-git-send-email-gerickson@nuovations.com/", "project": { "id": 3, "url": "http://patchwork.ozlabs.org/api/projects/3/?format=api", "name": "Linux MTD development", "link_name": "linux-mtd", "list_id": "linux-mtd.lists.infradead.org", "list_email": "linux-mtd@lists.infradead.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1220848151-22376-1-git-send-email-gerickson@nuovations.com>", "list_archive_url": null, "date": "2008-09-08T04:29:11", "name": "nandwrite: Clean-up Usage Output", "commit_ref": "2c684ab9b4fade11d6c6377921556373256c1a0c", "pull_url": null, "state": "accepted", "archived": false, "hash": "0e882b9a25aba10b650e277f1cf033ef05a9c0af", "submitter": { "id": 115, "url": "http://patchwork.ozlabs.org/api/people/115/?format=api", "name": "Grant Erickson", "email": "gerickson@nuovations.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/1220848151-22376-1-git-send-email-gerickson@nuovations.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/199/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/199/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-mtd-bounces+patchwork=ozlabs.org@lists.infradead.org>", "X-Original-To": "patchwork@ozlabs.org", "Delivered-To": "patchwork@ozlabs.org", "Received": [ "from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client did not present a certificate)\n\tby ozlabs.org (Postfix) with ESMTPS id B36EADDDED\n\tfor <patchwork@ozlabs.org>; Mon, 8 Sep 2008 14:29:20 +1000 (EST)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux))\n\tid 1KcYNH-0002rJ-9r; Mon, 08 Sep 2008 04:29:15 +0000", "from relay03.pair.com ([209.68.5.17])\n\tby bombadil.infradead.org with smtp (Exim 4.68 #1 (Red Hat Linux))\n\tid 1KcYNF-0002jd-Q7\n\tfor linux-mtd@lists.infradead.org; Mon, 08 Sep 2008 04:29:13 +0000", "(qmail 51448 invoked by uid 0); 8 Sep 2008 04:29:12 -0000", "from unknown (HELO localhost.localdomain) (unknown)\n\tby unknown with SMTP; 8 Sep 2008 04:29:12 -0000" ], "X-pair-Authenticated": "66.134.71.115", "From": "Grant Erickson <gerickson@nuovations.com>", "To": "linux-mtd@lists.infradead.org", "Subject": "[PATCH 5/6] [MTD-UTILS] nandwrite: Clean-up Usage Output", "Date": "Sun, 7 Sep 2008 21:29:11 -0700", "Message-Id": "<1220848151-22376-1-git-send-email-gerickson@nuovations.com>", "X-Mailer": "git-send-email 1.6.0.1", "Organization": "Nuovation System Designs, LLC", "X-Spam-Score": "-1.0 (-)", "X-Spam-Report": "SpamAssassin version 3.2.5 on bombadil.infradead.org summary:\n\tContent analysis details: (-1.0 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,\n\tlow trust [209.68.5.17 listed in list.dnswl.org]", "X-BeenThere": "linux-mtd@lists.infradead.org", "X-Mailman-Version": "2.1.9", "Precedence": "list", "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd>", "List-Post": "<mailto:linux-mtd@lists.infradead.org>", "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "linux-mtd-bounces@lists.infradead.org", "Errors-To": "linux-mtd-bounces+patchwork=ozlabs.org@lists.infradead.org" }, "content": "Realign help usage output to make it more explict when a description\nneeds to be wrapped.\n\nUse sentence case for the help usage output option short descriptions.\n\nSigned-off-by: Grant Erickson <gerickson@nuovations.com>", "diff": "diff --git a/nandwrite.c b/nandwrite.c\nindex 5fbed41..b7cd72e 100644\n--- a/nandwrite.c\n+++ b/nandwrite.c\n@@ -73,23 +73,26 @@ static struct nand_oobinfo autoplace_oobinfo = {\n \n static void display_help (void)\n {\n-\tprintf(\"Usage: nandwrite [OPTION] MTD_DEVICE INPUTFILE\\n\"\n-\t\t\t\"Writes to the specified MTD device.\\n\"\n-\t\t\t\"\\n\"\n-\t\t\t\" -a, --autoplace\tUse auto oob layout\\n\"\n-\t\t\t\" -j, --jffs2\t\tforce jffs2 oob layout (legacy support)\\n\"\n-\t\t\t\" -y, --yaffs\t\tforce yaffs oob layout (legacy support)\\n\"\n-\t\t\t\" -f, --forcelegacy\tforce legacy support on autoplacement enabled mtd device\\n\"\n-\t\t\t\" -m, --markbad\t\tmark blocks bad if write fails\\n\"\n-\t\t\t\" -n, --noecc\t\twrite without ecc\\n\"\n-\t\t\t\" -o, --oob\t\timage contains oob data\\n\"\n-\t\t\t\" -s addr, --start=addr set start address (default is 0)\\n\"\n-\t\t\t\" -p, --pad pad to page size\\n\"\n-\t\t\t\" -b, --blockalign=1|2|4 set multiple of eraseblocks to align to\\n\"\n-\t\t\t\" -q, --quiet\t\tdon't display progress messages\\n\"\n-\t\t\t\" --help\t\tdisplay this help and exit\\n\"\n-\t\t\t\" --version\t\toutput version information and exit\\n\");\n-\texit(0);\n+\tprintf(\n+\"Usage: nandwrite [OPTION] MTD_DEVICE INPUTFILE\\n\"\n+\"Writes to the specified MTD device.\\n\"\n+\"\\n\"\n+\" -a, --autoplace Use auto oob layout\\n\"\n+\" -j, --jffs2 Force jffs2 oob layout (legacy support)\\n\"\n+\" -y, --yaffs Force yaffs oob layout (legacy support)\\n\"\n+\" -f, --forcelegacy Force legacy support on autoplacement-enabled mtd\\n\"\n+\" device\\n\"\n+\" -m, --markbad Mark blocks bad if write fails\\n\"\n+\" -n, --noecc Write without ecc\\n\"\n+\" -o, --oob Image contains oob data\\n\"\n+\" -s addr, --start=addr Set start address (default is 0)\\n\"\n+\" -p, --pad Pad to page size\\n\"\n+\" -b, --blockalign=1|2|4 Set multiple of eraseblocks to align to\\n\"\n+\" -q, --quiet Don't display progress messages\\n\"\n+\" --help Display this help and exit\\n\"\n+\" --version Output version information and exit\\n\"\n+\t);\n+\texit (EXIT_SUCCESS);\n }\n \n static void display_version (void)\n", "prefixes": [] }