summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhali <khali>2015-05-04 12:01:39 +0000
committerkhali <khali>2015-05-04 12:01:39 +0000
commitfbae0a5f76371a2f2c9d1155979329676ad802e4 (patch)
tree7d597bd722a903e1f0e06aa084ddc1d812b0ba9e
parentf326e4a55de3cc3909dc7a190e7191d790765ee7 (diff)
downloaddmidecode-fbae0a5f76371a2f2c9d1155979329676ad802e4.tar.gz
Coding style fixes
-rw-r--r--biosdecode.c6
-rw-r--r--dmidecode.c2
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;