From nobody Tue Apr 16 14:49:30 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) client-ip=80.81.252.135; envelope-from=seabios-bounces@seabios.org; helo=mail.coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=iankelling.org Return-Path: Received: from mail.coreboot.org (mail.coreboot.org [80.81.252.135]) by mx.zohomail.com with SMTPS id 1526267562480206.22777993016348; Sun, 13 May 2018 20:12:42 -0700 (PDT) Received: from [127.0.0.1] (helo=ra.coreboot.org) by mail.coreboot.org with esmtp (Exim 4.86_2) (envelope-from ) id 1fI3yQ-00081z-7S; Mon, 14 May 2018 05:16:30 +0200 Received: from li.iankelling.org ([72.14.176.105] helo=mail.iankelling.org) by mail.coreboot.org with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2) (envelope-from ) id 1fI3yH-000814-CA for seabios@seabios.org; Mon, 14 May 2018 05:16:29 +0200 Received: from iank by mail.iankelling.org with local (Exim 4.86_2) (envelope-from ) id 1fI3uB-0002dX-62; Sun, 13 May 2018 23:12:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iankelling.org; s=li; h=Date:Subject:To:From; bh=wBl+Uo28iu0qdy1zbIktixVeLURFU1kj8L7MEc4jSNk=; b=GIe8uU71xL/IZuUNz0Cc7KAp7D x9y71837lAjzgo1RO0uSNXJCNbAXjeXt0VyCppwGLDYbIEEBjDhPyHQ7mT8+PHAZvtO5QGwZRisNB I5b75rvzfYgy0sWUI/2SX1JKzhFCo7ZKRit1RsViLNzsvWKTuu0bPQ+/3PVhexJFy6q5OUj0jW6oY ScbWRgk9CrP/SU2WNK4yLrMhJ0kP+P+81T2+8pgbPlB2zvAlmkcwHFsskafmaU5FFi6rrA5Kk7oDr VVeBh/9xeb47WB5f9cw1XtVqjBAOGev2FzKQgUK4AfDBxNgtpUgokf0Hz4ZEiF8bNZWt/l2ShRS5L d0mmKR0A==; From: Ian Kelling To: seabios@seabios.org Date: Sun, 13 May 2018 23:12:07 -0400 Message-Id: <1526267527-10097-1-git-send-email-ian@iankelling.org> X-Mailer: git-send-email 2.7.4 X-Spam-Score: -3.1 (---) Subject: [SeaBIOS] [PATCH] Enable shell-like * globing in bootorder entries X-BeenThere: seabios@seabios.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SeaBIOS mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: seabios-bounces@seabios.org Sender: "SeaBIOS" X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Ian Kelling --- src/boot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/boot.c b/src/boot.c index ff705fd..ca64595 100644 --- a/src/boot.c +++ b/src/boot.c @@ -91,14 +91,14 @@ glob_prefix(const char *glob, const char *str) } } =20 -// Search the bootorder list for the given glob pattern. +// Search the bootorder glob list for the given device description static int -find_prio(const char *glob) +find_prio(const char *desc) { - dprintf(1, "Searching bootorder for: %s\n", glob); + dprintf(1, "Searching bootorder for: %s\n", desc); int i; for (i =3D 0; i < BootorderCount; i++) - if (glob_prefix(glob, Bootorder[i])) + if (glob_prefix(Bootorder[i], desc)) return i+1; return -1; } --=20 2.7.4 _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org https://mail.coreboot.org/mailman/listinfo/seabios