From ceab3fa7039e64bb953e1f8aeef37e826fec028c Mon Sep 17 00:00:00 2001 From: Vikram Kanigiri Date: Fri, 16 Jan 2015 16:21:34 +0000 Subject: Add support and rationalize output to different log levels This patch adds support for different log levels and sets the default log level of 20 and 40 for release and debug builds respectively. It also differentiates the current printed logs into different log levels. Change-Id: I845074f45ddb2b11c9844f0b082f776b9944c4d9 --- lib/power_management/suspend/tftf_suspend.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/power_management/suspend/tftf_suspend.c') diff --git a/lib/power_management/suspend/tftf_suspend.c b/lib/power_management/suspend/tftf_suspend.c index fb976a0..46abeea 100644 --- a/lib/power_management/suspend/tftf_suspend.c +++ b/lib/power_management/suspend/tftf_suspend.c @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -61,7 +62,7 @@ int32_t tftf_cpu_suspend(uint32_t power_state) flags = read_daif(); - pr_debug("Going into suspend state\n"); + INFO("Going into suspend state\n"); rc = __tftf_cpu_suspend(power_state); @@ -78,7 +79,7 @@ int32_t tftf_cpu_suspend(uint32_t power_state) */ write_daif(flags); - pr_debug("Resumed from suspend state\n"); + INFO("Resumed from suspend state\n"); return rc; } -- cgit v1.2.3