summaryrefslogtreecommitdiff
path: root/lib/power_management/suspend/tftf_suspend.c
diff options
context:
space:
mode:
authorVikram Kanigiri <vikram.kanigiri@arm.com>2015-01-16 16:21:34 +0000
committerSandrine Bailleux <sandrine.bailleux@arm.com>2015-02-16 12:51:55 +0000
commitceab3fa7039e64bb953e1f8aeef37e826fec028c (patch)
treef4ee80f7538c4a056a87933723ac2ff9f0f1eca6 /lib/power_management/suspend/tftf_suspend.c
parent9757e1bdcd8de37d00ab5358c9efc07bb0191782 (diff)
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
Diffstat (limited to 'lib/power_management/suspend/tftf_suspend.c')
-rw-r--r--lib/power_management/suspend/tftf_suspend.c5
1 files changed, 3 insertions, 2 deletions
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 <arch_helpers.h>
#include <arm_gic.h>
+#include <debug.h>
#include <platform.h>
#include <power_management.h>
#include <psci.h>
@@ -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;
}