diff options
-rw-r--r-- | common/als.c | 7 | ||||
-rw-r--r-- | include/console_channel.inc | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/common/als.c b/common/als.c index c671aacf12..fee478c280 100644 --- a/common/als.c +++ b/common/als.c @@ -18,6 +18,11 @@ #include "timer.h" #include "util.h" +#define CPUTS(outstr) cputs(CC_ALS, outstr) +#define CPRINTS(format, args...) cprints(CC_ALS, format, ## args) +#define CPRINTF(format, args...) cprintf(CC_ALS, format, ## args) + + #define ALS_POLL_PERIOD SECOND static int task_timeout = -1; @@ -58,7 +63,7 @@ static void als_task_enable(void) err = als[i].init(); if (err) { fail_count++; - ccprintf("%s ALS sensor failed to initialize, err=%d\n", + CPRINTF("%s ALS sensor failed to initialize, err=%d\n", als[i].name, err); } } diff --git a/include/console_channel.inc b/include/console_channel.inc index a5dc6d80ec..0d3f7a07f9 100644 --- a/include/console_channel.inc +++ b/include/console_channel.inc @@ -78,6 +78,9 @@ CONSOLE_CHANNEL(CC_TOUCHPAD, "touchpad") #ifdef CONFIG_DPTF CONSOLE_CHANNEL(CC_DPTF, "dptf") #endif +#ifdef CONFIG_ALS +CONSOLE_CHANNEL(CC_ALS, "als") +#endif CONSOLE_CHANNEL(CC_THERMAL, "thermal") CONSOLE_CHANNEL(CC_TPM, "tpm") CONSOLE_CHANNEL(CC_USB, "usb") |