summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2018-09-28 16:43:57 +0800
committerAnson Huang <Anson.Huang@nxp.com>2018-09-28 16:46:26 +0800
commit08ee41f6caa50cbd349f018c9c48352bf7bbbf5e (patch)
tree863b140ad4c186b9de752ddf2b7176cab57ddcb9 /lib
parent1590be095f897790676d9c22f5338cd4d06840be (diff)
imx8qm/imx8qxp: enable output debug message to SC console
Add support for enabling output debug message to SC console, SC_CONSOLE is used to enable/disable it. Example log output on SC console as below: *** Debug Monitor *** >$ NOTICE: smc_fid is c2000003 imx_pwr_domain_on cluster_id 0, cpu_id 1 cluster:0 core:1 is on imx_pwr_domain_on cluster_id 0, cpu_id 2 cluster:0 core:2 is on imx_pwr_domain_on cluster_id 0, cpu_id 3 cluster:0 core:3 is on imx_pwr_domain_on cluster_id 1, cpu_id 0 cluster:1 core:0 is on imx_pwr_domain_on cluster_id 1, cpu_id 1 cluster:1 core:1 is on Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/putchar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdlib/putchar.c b/lib/stdlib/putchar.c
index 8265667b..ecae0d67 100644
--- a/lib/stdlib/putchar.c
+++ b/lib/stdlib/putchar.c
@@ -12,6 +12,8 @@
* character. Write all other printing functions in terms of putchar(), if
* possible, so they all benefit when this is improved.
*/
+#pragma weak putchar
+
int putchar(int c)
{
int res;