From: Andreas Reichel <[email protected]>
From: Andreas Reichel <[email protected]>
Fix some style issues.
---
tools/bg_utils.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/tools/bg_utils.c b/tools/bg_utils.c
index e44fc40..d042fc9 100644
--- a/tools/bg_utils.c
+++ b/tools/bg_utils.c
@@ -154,7 +154,7 @@ static FILE *open_config_file(CONFIG_PART *cfgpart, char
*mode)
strncat(configfilepath, "/", 1);
strncat(configfilepath, FAT_ENV_FILENAME, strlen(FAT_ENV_FILENAME));
VERBOSE(stdout, "Probing config file at %s.\n", configfilepath);
- FILE* config = fopen(configfilepath, mode);
+ FILE *config = fopen(configfilepath, mode);
free(configfilepath);
return config;
}
@@ -227,7 +227,7 @@ bool probe_config_partitions(CONFIG_PART *cfgpart)
PedPartition *part = pd->part_list;
while (part) {
if (!part->fs_type || !part->fs_type->name ||
- strcmp(part->fs_type->name, "fat16") != 0) {
+ strcmp(part->fs_type->name, "fat12") != 0) {
part = ped_disk_next_partition(pd, part);
continue;
}
@@ -440,11 +440,14 @@ bool bgenv_write(BGENV *env)
case BGENVTYPE_FAT:
part = (CONFIG_PART *)env->desc;
if (!part) {
- VERBOSE(stderr, "Invalid config partition to store
environment.\n");
+ VERBOSE(
+ stderr,
+ "Invalid config partition to store environment.\n");
return false;
}
if (!write_env(part, env->data)) {
- VERBOSE(stderr, "Could not write to %s\n",
part->devpath);
+ VERBOSE(stderr, "Could not write to %s\n",
+ part->devpath);
return false;
}
return true;
--
2.13.3
--
You received this message because you are subscribed to the Google Groups "EFI
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/efibootguard-dev/20170721131739.21423-3-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.