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>
diff --git a/src/include/device/dram/common.h b/src/include/device/dram/common.h
index 9475853..8d8a8b8 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 */