summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-02-15 10:08:16 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-02-15 10:08:16 +0900
commit0b75493da03fed3bf077791ce1289910eb6f6641 (patch)
tree521dfe26128adbbe60fb047a8dac5e78580628db /src/boot
parent0da4cc97b446b43802692f2415e5a774771b0ca9 (diff)
downloadsystemd-0b75493da03fed3bf077791ce1289910eb6f6641.tar.gz
tree-wide: fix typo and comment style update
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/efi/bcd.c2
-rw-r--r--src/boot/efi/boot.c2
-rw-r--r--src/boot/efi/console.c2
-rw-r--r--src/boot/efi/cpio.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/boot/efi/bcd.c b/src/boot/efi/bcd.c
index 7200012c0a..f6291e8b7f 100644
--- a/src/boot/efi/bcd.c
+++ b/src/boot/efi/bcd.c
@@ -204,7 +204,7 @@ static const KeyValue *get_key_value(const uint8_t *bcd, uint32_t bcd_len, const
/* The BCD store is really just a regular windows registry hive with a rather cryptic internal
* key structure. On a running system it gets mounted to HKEY_LOCAL_MACHINE\BCD00000000.
*
- * Of interest to us are the these two keys:
+ * Of interest to us are these two keys:
* - \Objects\{bootmgr}\Elements\24000001
* This key is the "displayorder" property and contains a value of type REG_MULTI_SZ
* with the name "Element" that holds a {GUID} list (UTF16, NUL-separated).
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c
index 03fe022ef6..6d4da0c51c 100644
--- a/src/boot/efi/boot.c
+++ b/src/boot/efi/boot.c
@@ -1907,7 +1907,7 @@ static ConfigEntry *config_entry_add_loader_auto(
* but we do not want to do that if that would be us.
*
* If the default loader is not us, it might be shim. It would
- * chainload GRUBX64.EFI in that case, which might be us.*/
+ * chainload GRUBX64.EFI in that case, which might be us. */
if (strcaseeq16(loader, loaded_image_path) ||
is_sd_boot(root_dir, loader) ||
is_sd_boot(root_dir, u"\\EFI\\BOOT\\GRUB" EFI_MACHINE_TYPE_NAME u".EFI"))
diff --git a/src/boot/efi/console.c b/src/boot/efi/console.c
index 3b8b6b2e41..343d965692 100644
--- a/src/boot/efi/console.c
+++ b/src/boot/efi/console.c
@@ -47,7 +47,7 @@ EFI_STATUS console_key_read(uint64_t *key, uint64_t timeout_usec) {
assert(key);
if (!checked) {
- /* Get the *first* TextInputEx device.*/
+ /* Get the *first* TextInputEx device. */
err = BS->LocateProtocol(
MAKE_GUID_PTR(EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL), NULL, (void **) &extraInEx);
if (err != EFI_SUCCESS || BS->CheckEvent(extraInEx->WaitForKeyEx) == EFI_INVALID_PARAMETER)
diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c
index a91070b020..1fd16a98d1 100644
--- a/src/boot/efi/cpio.c
+++ b/src/boot/efi/cpio.c
@@ -79,7 +79,7 @@ static EFI_STATUS pack_cpio_one(
if (*inode_counter == UINT32_MAX) /* more than 2^32-1 inodes? yikes. cpio doesn't support that either */
return EFI_OUT_OF_RESOURCES;
- l = 6 + 13*8 + 1 + 1; /* Fixed CPIO header size, slash separator, and NUL byte after the file name*/
+ l = 6 + 13*8 + 1 + 1; /* Fixed CPIO header size, slash separator, and NUL byte after the file name */
target_dir_prefix_size = strlen8(target_dir_prefix);
if (l > SIZE_MAX - target_dir_prefix_size)
@@ -177,7 +177,7 @@ static EFI_STATUS pack_cpio_dir(
if (*inode_counter == UINT32_MAX)
return EFI_OUT_OF_RESOURCES;
- l = 6 + 13*8 + 1; /* Fixed CPIO header size, and NUL byte after the file name*/
+ l = 6 + 13*8 + 1; /* Fixed CPIO header size, and NUL byte after the file name */
path_size = strlen8(path);
if (l > SIZE_MAX - path_size)