util/smmstoretool/fv.c: fix 3 formatting issues

Change-Id: If27218df40e58f249769b3d84c0cd4c299e2282b
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81173
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
Sergii Dmytruk 2024-03-10 18:51:45 +02:00 committed by Martin L Roth
parent c8575728b5
commit b2d86f1f05

View File

@ -33,8 +33,7 @@ static uint16_t calc_checksum(const uint16_t *hdr, size_t size)
return checksum; return checksum;
} }
bool bool fv_init(struct mem_range_t fv)
fv_init(struct mem_range_t fv)
{ {
if (fv.length % SMM_BLOCK_SIZE != 0) { if (fv.length % SMM_BLOCK_SIZE != 0) {
fprintf(stderr, fprintf(stderr,
@ -152,8 +151,8 @@ static bool check_var_store_hdr(const VARIABLE_STORE_HEADER *hdr,
return true; return true;
} }
bool bool fv_parse(struct mem_range_t fv, struct mem_range_t *var_store,
fv_parse(struct mem_range_t fv, struct mem_range_t *var_store, bool *auth_vars) bool *auth_vars)
{ {
const EFI_FIRMWARE_VOLUME_HEADER *vol_hdr = (void *)fv.start; const EFI_FIRMWARE_VOLUME_HEADER *vol_hdr = (void *)fv.start;
if (!check_fw_vol_hdr(vol_hdr, fv.length)) { if (!check_fw_vol_hdr(vol_hdr, fv.length)) {