Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/202/?format=api
{ "id": 202, "url": "http://patchwork.ozlabs.org/api/patches/202/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/1220856336-22772-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": "<1220856336-22772-1-git-send-email-gerickson@nuovations.com>", "list_archive_url": null, "date": "2008-09-08T06:45:36", "name": "nanddump: Pass Real Names as Arguments to perror", "commit_ref": "6200113fb94fb2782c220defc301712439543904", "pull_url": null, "state": "accepted", "archived": false, "hash": "710b6972e02ad2747cde34a3de9de084f278fb3d", "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/1220856336-22772-1-git-send-email-gerickson@nuovations.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/202/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/202/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 F2B02DDE1D\n\tfor <patchwork@ozlabs.org>; Mon, 8 Sep 2008 16:45:47 +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 1KcaVI-0005I1-KQ; Mon, 08 Sep 2008 06:45:40 +0000", "from relay02.pair.com ([209.68.5.16])\n\tby bombadil.infradead.org with smtp (Exim 4.68 #1 (Red Hat Linux))\n\tid 1KcaVG-000548-MC\n\tfor linux-mtd@lists.infradead.org; Mon, 08 Sep 2008 06:45:38 +0000", "(qmail 89176 invoked by uid 0); 8 Sep 2008 06:45:37 -0000", "from unknown (HELO localhost.localdomain) (unknown)\n\tby unknown with SMTP; 8 Sep 2008 06:45:37 -0000" ], "X-pair-Authenticated": "66.134.71.115", "From": "Grant Erickson <gerickson@nuovations.com>", "To": "linux-mtd@lists.infradead.org", "Subject": "[PATCH 3/6] [MTD-UTILS] nanddump: Pass Real Names as Arguments to\n\tperror", "Date": "Sun, 7 Sep 2008 23:45:36 -0700", "Message-Id": "<1220856336-22772-1-git-send-email-gerickson@nuovations.com>", "X-Mailer": "git-send-email 1.6.0.1", "Organization": "Nuovation System Designs, LLC", "X-Spam-Score": "0.0 (/)", "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": "Pass the MTD device node and dump file name as arguments to perror\nrather than more ambigous, static messages on open failures.\n\nSigned-off-by: Grant Erickson <gerickson@nuovations.com>", "diff": "diff --git a/nanddump.c b/nanddump.c\nindex 8c7175c..168fbbb 100644\n--- a/nanddump.c\n+++ b/nanddump.c\n@@ -182,7 +182,7 @@ int main(int argc, char * const argv[])\n \n \t/* Open MTD device */\n \tif ((fd = open(mtddev, O_RDONLY)) == -1) {\n-\t\tperror(\"open flash\");\n+\t\tperror(mtddev);\n \t\texit (EXIT_FAILURE);\n \t}\n \n@@ -249,7 +249,7 @@ int main(int argc, char * const argv[])\n \tif (!dumpfile) {\n \t\tofd = STDOUT_FILENO;\n \t} else if ((ofd = open(dumpfile, O_WRONLY | O_TRUNC | O_CREAT, 0644))== -1) {\n-\t\tperror (\"open outfile\");\n+\t\tperror (dumpfile);\n \t\tclose(fd);\n \t\texit(EXIT_FAILURE);\n \t}\n", "prefixes": [] }