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>
This commit is contained in:
Arthur Heymans 2022-03-23 22:47:06 +01:00
parent 4bf582f6bb
commit 4beeb90813
1 changed files with 5 additions and 5 deletions

View File

@ -40,11 +40,11 @@
* disabled. * disabled.
* @{ * @{
*/ */
#if CONFIG(DEBUG_RAM_SETUP) #define printram(x, ...) \
#define printram(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__) do { \
#else if (CONFIG(DEBUG_RAM_SETUP)) \
#define printram(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__); \
#endif } while (0)
/** @} */ /** @} */
/** Result of the SPD decoding process */ /** Result of the SPD decoding process */