From fbae0a5f76371a2f2c9d1155979329676ad802e4 Mon Sep 17 00:00:00 2001 From: khali Date: Mon, 4 May 2015 12:01:39 +0000 Subject: Coding style fixes --- biosdecode.c | 6 +++--- dmidecode.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/biosdecode.c b/biosdecode.c index 4bc964d..3bbfe28 100644 --- a/biosdecode.c +++ b/biosdecode.c @@ -103,7 +103,7 @@ static int smbios3_decode(const u8 *p, size_t len) printf("SMBIOS %u.%u.%u present.\n", p[0x07], p[0x08], p[0x09]); printf("\tStructure Table Maximum Length: %u bytes\n", - DWORD(p+0x0C)); + DWORD(p + 0x0C)); printf("\tStructure Table 64-bit Address: 0x%08X%08X\n", QWORD(p + 0x10).h, QWORD(p + 0x10).l); @@ -125,7 +125,7 @@ static int smbios_decode(const u8 *p, size_t len) printf("SMBIOS %u.%u present.\n", p[0x06], p[0x07]); printf("\tStructure Table Length: %u bytes\n", - WORD(p+0x16)); + WORD(p + 0x16)); printf("\tStructure Table Address: 0x%08X\n", DWORD(p + 0x18)); printf("\tNumber Of Structures: %u\n", @@ -536,7 +536,7 @@ static int fjkeyinf_decode(const u8 *p, size_t len) return 1; printf("\tDevice %d: type %u, chip %u", i + 1, *(p + 8 + i * 4), *(p + 8 + i * 4 + 2)); - if (*(p+8+i*4+1)) /* Access method */ + if (*(p + 8 + i * 4 + 1)) /* Access method */ printf(", SMBus address 0x%x", *(p + 8 + i * 4 + 3) >> 1); printf("\n"); diff --git a/dmidecode.c b/dmidecode.c index dfc6368..1f948f0 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -4852,7 +4852,7 @@ memory_scan: } else if (memcmp(buf + fp, "_SM_", 4) == 0 && fp <= 0xFFE0) { - if (smbios_decode(buf+fp, opt.devmem, 0)) + if (smbios_decode(buf + fp, opt.devmem, 0)) { found++; fp += 16; -- cgit v1.2.1