summaryrefslogtreecommitdiff
path: root/src/include/console/console.h
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-05-18 16:12:07 +0200
committerNico Huber <nico.h@gmx.de>2017-05-22 11:07:57 +0200
commitafa9aefce00551d5d6227ad0081389b972dd767f (patch)
tree537a06325971eb751349878089899bf950e65ddf /src/include/console/console.h
parent7b811d5e3661874dfeca01901f3641eb70a95b1d (diff)
include/console: Use IS_ENABLED() macro
Change-Id: I3d0c61c37399e96c1d154c1d3af5c47db967a07a Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/19763 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Diffstat (limited to 'src/include/console/console.h')
-rw-r--r--src/include/console/console.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h
index d89d7471ca..e00482439a 100644
--- a/src/include/console/console.h
+++ b/src/include/console/console.h
@@ -28,7 +28,7 @@
#ifndef __ROMCC__
void post_code(u8 value);
-#if CONFIG_CMOS_POST_EXTRA
+#if IS_ENABLED(CONFIG_CMOS_POST_EXTRA)
void post_log_extra(u32 value);
struct device;
void post_log_path(struct device *dev);
@@ -46,7 +46,7 @@ void __attribute__ ((noreturn)) die(const char *msg);
((ENV_BOOTBLOCK && IS_ENABLED(CONFIG_BOOTBLOCK_CONSOLE)) || \
(ENV_POSTCAR && IS_ENABLED(CONFIG_POSTCAR_CONSOLE)) || \
ENV_VERSTAGE || ENV_ROMSTAGE || ENV_RAMSTAGE || ENV_LIBAGESA || \
- (ENV_SMM && CONFIG_DEBUG_SMI))
+ (ENV_SMM && IS_ENABLED(CONFIG_DEBUG_SMI)))
#if __CONSOLE_ENABLE__
asmlinkage void console_init(void);