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
This commit is contained in:
Jose Luis Duran
2025-11-15 17:25:32 +00:00
committed by Warner Losh
parent fad4c92b78
commit 0e614a4afe
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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).
+5 -5
View File
@@ -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 @@ efi_hd_to_unix(struct gmesh *mesh, const_efidp dp, char **dev, char **relpath, c
*
* 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.
*/
+1 -1
View File
@@ -31,7 +31,7 @@
#include <sys/endian.h>
#include <stdint.h>
/* 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
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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