summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-08 10:01:34 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-13 17:21:42 +0100
commit6083c7ebc790c408185cfdeb22c5e83f59630ec7 (patch)
tree59021d30fcef7493ab86cf15f6be55e5a1547850 /src/include
parent696ced6cfbd12f174b9064985cf6cd2c3bf1d339 (diff)
downloadcoreboot-6083c7ebc790c408185cfdeb22c5e83f59630ec7.tar.xz
src/include: Move constants to the right hand side
Fix the following warning detected by checkpatch.pl: WARNING: Comparisons should place the constant on the right side of the test TEST=Build and run on Galileo Gen2 Change-Id: Id790e0034ea5c926fcaef95486319d6c0c936f28 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18682 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/console/early_print.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/console/early_print.h b/src/include/console/early_print.h
index 173b6feb96..cde501a4ec 100644
--- a/src/include/console/early_print.h
+++ b/src/include/console/early_print.h
@@ -25,7 +25,7 @@
/* While in romstage, console loglevel is built-time constant.
* With ROMCC we inline this test with help from preprocessor.
*/
-#define console_log_level(msg_level) (CONFIG_DEFAULT_CONSOLE_LOGLEVEL >= msg_level)
+#define console_log_level(msg_level) (msg_level <= CONFIG_DEFAULT_CONSOLE_LOGLEVEL)
#define CALL_CONSOLE_TX(loglevel, tx_func, x) \
do { \