tree-wide: normalize comment style
This commit is contained in:
+1
-1
@@ -3133,4 +3133,4 @@ static EFI_STATUS run(EFI_HANDLE image) {
|
||||
}
|
||||
}
|
||||
|
||||
DEFINE_EFI_MAIN_FUNCTION(run, "systemd-boot", /*wait_for_debugger=*/false);
|
||||
DEFINE_EFI_MAIN_FUNCTION(run, "systemd-boot", /* wait_for_debugger= */ false);
|
||||
|
||||
@@ -128,7 +128,7 @@ EFI_STATUS device_path_to_str(const EFI_DEVICE_PATH *dp, char16_t **ret) {
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
str = dp_to_text->ConvertDevicePathToText(dp, /* DisplayOnly=*/ false, /* AllowShortcuts= */ false);
|
||||
str = dp_to_text->ConvertDevicePathToText(dp, /* DisplayOnly= */ false, /* AllowShortcuts= */ false);
|
||||
if (!str)
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
|
||||
|
||||
@@ -5,14 +5,13 @@
|
||||
|
||||
#define FWHEADERMAGIC (UINT32_C(0xfeeddead))
|
||||
|
||||
/* The structure of the efifw UKI blob is the following:
|
||||
* ---------------------------------------------------------
|
||||
* EfiFw header|fwid|payload| reserved for future attributes
|
||||
* ---------------------------------------------------------
|
||||
* The base header defines the length of full header, fwid and payload.
|
||||
* The fwid is a NUL terminated string.
|
||||
* The payload contains the actual efi firmware.
|
||||
*/
|
||||
/* The structure of the efifw UKI blob is the following:
|
||||
* ---------------------------------------------------------
|
||||
* EfiFw header|fwid|payload| reserved for future attributes
|
||||
* ---------------------------------------------------------
|
||||
* The base header defines the length of full header, fwid and payload.
|
||||
* The fwid is a NUL terminated string.
|
||||
* The payload contains the actual efi firmware. */
|
||||
typedef struct EfiFwHeader {
|
||||
uint32_t magic; /* magic number that defines Efifw */
|
||||
uint32_t header_len; /* total length of header including all attributes */
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ static EFI_STATUS load_via_boot_services(
|
||||
});
|
||||
|
||||
|
||||
err = BS->LoadImage(/* BootPolicy= */false,
|
||||
err = BS->LoadImage(/* BootPolicy= */ false,
|
||||
parent,
|
||||
&kernel_file_path->memmap_path.Header,
|
||||
kernel->iov_base,
|
||||
|
||||
@@ -30,7 +30,7 @@ typedef struct {
|
||||
} _packed_ GptHeader;
|
||||
assert_cc(sizeof(GptHeader) == 512);
|
||||
|
||||
static bool verify_gpt(/*const*/ GptHeader *h, EFI_LBA lba_expected) {
|
||||
static bool verify_gpt(/* const */ GptHeader *h, EFI_LBA lba_expected) {
|
||||
uint32_t crc32, crc32_saved;
|
||||
EFI_STATUS err;
|
||||
|
||||
|
||||
+4
-4
@@ -367,8 +367,8 @@ static void pe_locate_sections(
|
||||
n_section_table,
|
||||
section_names,
|
||||
validate_base,
|
||||
/* device_table = */ NULL,
|
||||
/* device = */ NULL,
|
||||
/* device_table= */ NULL,
|
||||
/* device= */ NULL,
|
||||
sections);
|
||||
|
||||
/* It doesn't make sense not to provide validate_base here */
|
||||
@@ -387,8 +387,8 @@ static void pe_locate_sections(
|
||||
n_section_table,
|
||||
hwid_section_names,
|
||||
validate_base,
|
||||
/* device_table = */ NULL,
|
||||
/* device = */ NULL,
|
||||
/* device_table= */ NULL,
|
||||
/* device= */ NULL,
|
||||
hwids_section);
|
||||
|
||||
if (PE_SECTION_VECTOR_IS_SET(hwids_section)) {
|
||||
|
||||
@@ -166,7 +166,7 @@ EFI_STATUS secure_boot_enroll_at(EFI_FILE *root_dir, const char16_t *path, bool
|
||||
}
|
||||
|
||||
if (need_custom_mode && !custom_mode_enabled()) {
|
||||
err = set_custom_mode(/* enable = */ true);
|
||||
err = set_custom_mode(/* enable= */ true);
|
||||
if (err != EFI_SUCCESS) {
|
||||
log_error_status(err, "Failed to enable custom mode: %m");
|
||||
goto out_deallocate;
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ static EFI_STATUS bmp_parse_header(
|
||||
if (file->size < file->offset)
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
||||
/* check device-independent bitmap */
|
||||
/* check device-independent bitmap */
|
||||
struct bmp_dib *dib = (struct bmp_dib *) (bmp + sizeof(struct bmp_file));
|
||||
if (dib->size < SIZEOF_BMP_DIB)
|
||||
return EFI_UNSUPPORTED;
|
||||
|
||||
Reference in New Issue
Block a user