diff options
-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 */ |