From patchwork Fri Oct 1 05:40:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 66306 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0D923B6F11 for ; Fri, 1 Oct 2010 15:42:18 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1P1YLL-000507-Fy; Fri, 01 Oct 2010 05:39:39 +0000 Received: from smtp.gentoo.org ([140.211.166.183]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1P1YLI-0004yy-MM for linux-mtd@lists.infradead.org; Fri, 01 Oct 2010 05:39:37 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 498DD1B41D5 for ; Fri, 1 Oct 2010 05:39:35 +0000 (UTC) From: Mike Frysinger To: linux-mtd@lists.infradead.org Subject: [PATCH] libmtd: fix "fount" typo Date: Fri, 1 Oct 2010 01:40:33 -0400 Message-Id: <1285911633-9386-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.3.1 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20101001_013936_867161_000A3074 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [140.211.166.183 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Mike Frysinger --- lib/libmtd_legacy.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libmtd_legacy.c b/lib/libmtd_legacy.c index 27fb3f8..3d129c1 100644 --- a/lib/libmtd_legacy.c +++ b/lib/libmtd_legacy.c @@ -125,18 +125,18 @@ static int proc_parse_next(struct proc_parse_info *pi) p = memchr(pi->next, '\"', pi->data_size - pos); if (!p) - return errmsg("opening \" not fount"); + return errmsg("opening \" not found"); p += 1; pos = p - pi->buf; if (pos >= pi->data_size) - return errmsg("opening \" not fount"); + return errmsg("opening \" not found"); p1 = memchr(p, '\"', pi->data_size - pos); if (!p1) - return errmsg("closing \" not fount"); + return errmsg("closing \" not found"); pos = p1 - pi->buf; if (pos >= pi->data_size) - return errmsg("closing \" not fount"); + return errmsg("closing \" not found"); len = p1 - p; if (len > MTD_NAME_MAX) @@ -146,7 +146,7 @@ static int proc_parse_next(struct proc_parse_info *pi) pi->name[len] = '\0'; if (p1[1] != '\n') - return errmsg("opening \"\n\" not fount"); + return errmsg("opening \"\n\" not found"); pi->next = p1 + 2; return 1; }