summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-08-22 18:03:28 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-08-22 18:03:28 +0200
commitf9f41060267c17e0036bad90ec7c85f87bb5d6ff (patch)
treeab3842d198b4d357996028953588a54cc1f8227d
parente1e94c92e4ae0ac63e256b3b7049f7e3cc9e082a (diff)
downloadamiga-nvram-f9f41060267c17e0036bad90ec7c85f87bb5d6ff.tar.gz
Correct whitespaceHEADmaster
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
-rw-r--r--amiga-nvram.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/amiga-nvram.c b/amiga-nvram.c
index 3feb93a..9492438 100644
--- a/amiga-nvram.c
+++ b/amiga-nvram.c
@@ -17,7 +17,7 @@
#define NVRAM_FILE "/sys/devices/platform/rtc-rp5c01/nvram"
-#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
static const char *program_name;
@@ -243,9 +243,10 @@ static void nvram_dump(void)
const struct nvram_field *field = &nvram_fields[i];
uint32_t val = nvram_get_field(field);
if (field->len == 32)
- printf("%-*s = 0x%08x\n", max_name_len, field->name, val);
+ printf("%-*s = 0x%08x\n", max_name_len, field->name,
+ val);
else
- printf("%-*s = %u\n", max_name_len, field->name, val);
+ printf("%-*s = %u\n", max_name_len, field->name, val);
}
printf("%-*s = 0x%02x ", max_name_len, "checksum", nvram.checksum);
sum = nvram_checksum();
@@ -344,8 +345,8 @@ int main(int argc, char *argv[])
if (opt_checksum) {
uint8_t sum = nvram_checksum();
if (sum != nvram.checksum) {
- msg("Correcting checksum\n");
- nvram.checksum = sum;
+ msg("Correcting checksum\n");
+ nvram.checksum = sum;
}
}