From nobody Tue Nov 25 18:17:26 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dG9s31VQ9z6HZ0L for ; Tue, 25 Nov 2025 18:17:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dG9s30jgfz40vC for ; Tue, 25 Nov 2025 18:17:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764094647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tz1+nHU4XrkF3mKdhvZDCckszcX8GRwbbhHn3HWLS08=; b=v3LdnTvpDo7+UX+FPY3ObpXQRDWhenmB7jj/KljbZkUS1AF7FSM7ip6/Zj5mMaSZ2LyNLM o+zjECTBGSpg39tu6E8cZLpE01L4hw4kykS9B35lsHolZEByZ/3uvIdycCdfz85l8V7abt l9wI0qbZK9hrp18e6Q4gjD/4NF4p0/pPO6XK2PCOGNuqmRyHLgX6WuXaboR6UNip91J5Eg 6Sc0e/mcRiqrXE0jNvry5Jb/vWtQHs4xAFV1HOLIw/2PXDHs1sNUSzjBhX5U0RoKrTNcKF S4ayPwVBPhmeJiMTMHgQ/fH7oghicwL8R4leUwen87mqnmGeY1bjBVVhR2s4Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764094647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Tz1+nHU4XrkF3mKdhvZDCckszcX8GRwbbhHn3HWLS08=; b=e2BK7Jt3xmipwZ6iLBEDV0EJm0dF4nJZuzoLLClFEgwZcEEsNVybd6bcsCxnVJtAhMiB10 25yZZpms6ObHPhcd1mFXCYmAPZqKJNkRTbcEA+2qWdcpttb4t6Tp5oJeJS9XC7lgWMglwy 9vyibJmwQmEoDXC970WnKwNfX4Z5te9bbC/BEXCa/028vsmgESuNKL8lRqpM5MOBiZpw+v gzEU4Rm6FQlbQoTF1vDvtii0fm5QR5eIzBbF0nm0PPQCYHpDVi4GB+usG/SHXJuZuxK1O0 unX/2lacuFrjlZW5RRW4+lwP+6BjrEWaGHpsphniWRqeDczcTn9NoFQfBTa+Vg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764094647; a=rsa-sha256; cv=none; b=GrefCQkLPcD+GBzCIKZQ3dQWrSrQfnF1R0Mr/E2CqiafGKBIjbZISZoFRP7+Frp83KbMJq KQcXDaffLLawCDshFKIpvNTNryukdt9G+GfcGwHld/qdGZHtK4IxFCxIfeGF5HKX6Px/UY 5sedUOV6FB4I3q1fgCnWIHuLtRNkfy/QiMBfziyhaBoTSpLRyh8vTiZXNdPpf2mVy5foIm EOsQvEOMCWeWVbXdBS3+PMY1FbzIXQynADKkvG2zw/RCT84UD2HcPpjku+3CKkZdj6m0kZ 6LvfojPWZPVBaMT24vdJEsyvv9w8qFoiZpfXB8bXASAh5gBt3vCOklHY2t7ckw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dG9s26xx6z19xF for ; Tue, 25 Nov 2025 18:17:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id e9b5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 25 Nov 2025 18:17:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Jose Luis Duran From: Warner Losh Subject: git: 0e614a4afe48 - main - libefivar: Fix (some) typos List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0e614a4afe48f602fafad128e6a053c89f7445cd Auto-Submitted: auto-generated Date: Tue, 25 Nov 2025 18:17:26 +0000 Message-Id: <6925f2b6.e9b5.16e4ed29@gitrepo.freebsd.org> The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0e614a4afe48f602fafad128e6a053c89f7445cd commit 0e614a4afe48f602fafad128e6a053c89f7445cd Author: Jose Luis Duran AuthorDate: 2025-11-15 17:25:32 +0000 Commit: Warner Losh CommitDate: 2025-11-25 18:17:23 +0000 libefivar: Fix (some) typos Fix typos in the files that are owned by the project. Bring back a "duplicate word" removal (node node), which should have been "node Node", the second "node" is not capitalized in the reference file (yet). We'll bring it back capitalized to avoid it from triggering automated checking scripts and possibly reverting this change again. A few other typos were not fixed, as we strive to keep as close to the reference files as possible, these fixes should be submitted to the reference project (tianocore/edk2) in the not so distant future. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1894 --- lib/libefivar/FreeBSD-update | 2 +- lib/libefivar/efivar-dp-xlate.c | 10 +++++----- lib/libefivar/efivar.h | 2 +- lib/libefivar/uefi-dputil.c | 2 +- sys/sys/efi-edk2.h | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/libefivar/FreeBSD-update b/lib/libefivar/FreeBSD-update index 52d0db4021ef..53b8f0dfff1a 100644 --- a/lib/libefivar/FreeBSD-update +++ b/lib/libefivar/FreeBSD-update @@ -8,7 +8,7 @@ These files are first mechnaically processed with sed -e "s/L'/'/g;"'s/L"/"/g;s/%g/%36s/g;s/%a/%s/g;s/^VOID/static VOID/g;s/ *$//g' -for several reasons. We're moving from wide rotuines to narrow routines. The +for several reasons. We're moving from wide routines to narrow routines. The UTC-2 this code is written for is a bad match for wchar_t which is an int. It's a much better match for plain narrow characters on FreeBSD. So we pretend that CHAR16 for these files is really char * (ASCII). diff --git a/lib/libefivar/efivar-dp-xlate.c b/lib/libefivar/efivar-dp-xlate.c index 78d82ba4bce0..2012842b6f80 100644 --- a/lib/libefivar/efivar-dp-xlate.c +++ b/lib/libefivar/efivar-dp-xlate.c @@ -221,7 +221,7 @@ efi_hd_to_unix(struct gmesh *mesh, const_efidp dp, char **dev, char **relpath, c provider = pp; for (i = 0; i < n; i++) { /* - * Skip all pseudo filesystems. This also skips the real filesytsem + * Skip all pseudo filesystems. This also skips the real filesystem * of ZFS. There's no EFI designator for ZFS in the standard, so * we'll need to invent one, but its decoding will be handled in * a separate function. @@ -328,7 +328,7 @@ errout: * * Extract the path from the File path node(s). translate any \ file separators * to /. Append the result to the mount point. Copy the resulting path into - * *path. Stat that path. If it is not found, return the errorr from stat. + * *path. Stat that path. If it is not found, return the error from stat. * * Finally, check to make sure the resulting path is still on the same * device. If not, return ENODEV. @@ -433,7 +433,7 @@ efivar_device_path_to_unix_path(const_efidp dp, char **dev, char **relpath, char * For paths of the first form: * find where the filesystem is mount (either the file directly, or * its parent directory). - * translate any logical device name (eg lable) to a physical one + * translate any logical device name (eg label) to a physical one * If not possible, return ENXIO * If the physical path is unsupported (Eg not on a GPT or MBR disk), * return ENXIO @@ -442,7 +442,7 @@ efivar_device_path_to_unix_path(const_efidp dp, char **dev, char **relpath, char * as a file path. * * For paths matching the second form: - * find the EFI partition corresponding to the root fileystem. + * find the EFI partition corresponding to the root filesystem. * If none found, return ENXIO * Create a media device path node for the found partition * Append a File Path to the end for the rest of the file. @@ -553,7 +553,7 @@ find_geom_efimedia(struct gmesh *mesh, const char *dev) efimedia = geom_pp_attr(mesh, pp, "efimedia"); /* - * If this device doesn't hav an efimedia attribute, see if it is a + * If this device doesn't have an efimedia attribute, see if it is a * glabel node, and if so look for the underlying provider to get the * efimedia attribute from. */ diff --git a/lib/libefivar/efivar.h b/lib/libefivar/efivar.h index e159f4cccd3d..238b23a8b2b8 100644 --- a/lib/libefivar/efivar.h +++ b/lib/libefivar/efivar.h @@ -31,7 +31,7 @@ #include #include -/* Shoud these be elsewhere ? */ +/* Should these be elsewhere ? */ #define EFI_VARIABLE_NON_VOLATILE 0x00000001 #define EFI_VARIABLE_BOOTSERVICE_ACCESS 0x00000002 #define EFI_VARIABLE_RUNTIME_ACCESS 0x00000004 diff --git a/lib/libefivar/uefi-dputil.c b/lib/libefivar/uefi-dputil.c index c31da14eed2d..1f6a051ce600 100644 --- a/lib/libefivar/uefi-dputil.c +++ b/lib/libefivar/uefi-dputil.c @@ -127,7 +127,7 @@ GetDevicePathSize ( @param MaxSize The maximum size of the device path data structure. @retval TRUE DevicePath is valid. - @retval FALSE The length of any node in the DevicePath is less + @retval FALSE The length of any node Node in the DevicePath is less than sizeof (EFI_DEVICE_PATH_PROTOCOL). @retval FALSE If MaxSize is not zero, the size of the DevicePath exceeds MaxSize. diff --git a/sys/sys/efi-edk2.h b/sys/sys/efi-edk2.h index b27b26bd613c..d591c253a3e0 100644 --- a/sys/sys/efi-edk2.h +++ b/sys/sys/efi-edk2.h @@ -72,7 +72,7 @@ typedef void VOID; /* * Note: the EDK2 code assumed #pragma packed works and PACKED is a * workaround for some old toolchain issues for EDK2 that aren't - * relevent to FreeBSD. + * relevant to FreeBSD. */ #define PACKED