diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-03-23 22:47:06 +0100 |
---|---|---|
committer | Arthur Heymans <arthur@aheymans.xyz> | 2022-05-11 13:55:33 +0000 |
commit | 4beeb90813e24dc81a93872b7b86ffa5797539c0 (patch) | |
tree | 9dca781ff7da9509a26b7892f02f80cb77e1f425 /src | |
parent | 4bf582f6bb3306b09e9100c7440c265c59094721 (diff) |
device/dram/common.h: Use C over CPP
This fixes building with clang.
Change-Id: Ia8511ab46184aa0d8ee3a79c3ef22614aeb61298
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63057
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/include/device/dram/common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/device/dram/common.h b/src/include/device/dram/common.h index 9475853924..8d8a8b870c 100644 --- a/src/include/device/dram/common.h +++ b/src/include/device/dram/common.h @@ -40,11 +40,11 @@ * disabled. * @{ */ -#if CONFIG(DEBUG_RAM_SETUP) -#define printram(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__) -#else -#define printram(x, ...) -#endif +#define printram(x, ...) \ + do { \ + if (CONFIG(DEBUG_RAM_SETUP)) \ + printk(BIOS_DEBUG, x, ##__VA_ARGS__); \ + } while (0) /** @} */ /** Result of the SPD decoding process */ |