summaryrefslogtreecommitdiff
path: root/lib/power_management/hotplug
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/hotplug
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/hotplug')
-rw-r--r--lib/power_management/hotplug/hotplug.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/power_management/hotplug/hotplug.c b/lib/power_management/hotplug/hotplug.c
index 430764b..445489c 100644
--- a/lib/power_management/hotplug/hotplug.c
+++ b/lib/power_management/hotplug/hotplug.c
@@ -79,7 +79,7 @@ unsigned int tftf_inc_ref_cnt(void)
cnt = ++ref_cnt;
spin_unlock(&ref_cnt_lock);
- pr_debug("Entering the test (%u CPUs in the test now)\n", cnt);
+ VERBOSE("Entering the test (%u CPUs in the test now)\n", cnt);
return cnt;
}
@@ -93,7 +93,7 @@ unsigned int tftf_dec_ref_cnt(void)
cnt = --ref_cnt;
spin_unlock(&ref_cnt_lock);
- pr_debug("Exiting the test (%u CPUs in the test now)\n", cnt);
+ VERBOSE("Exiting the test (%u CPUs in the test now)\n", cnt);
return cnt;
}
@@ -180,7 +180,7 @@ int32_t tftf_cpu_on(uint64_t target_cpu,
tftf_wait_for_event(&cpu_is_online[core_pos]);
} else {
spin_unlock(&cpus_status_map[core_pos].lock);
- mp_printf("Failed to boot CPU 0x%lx (%d)\n", target_cpu, ret);
+ ERROR("Failed to boot CPU 0x%lx (%d)\n", target_cpu, ret);
}
return ret;
@@ -200,12 +200,12 @@ int32_t tftf_cpu_off(void)
isb();
arm_gic_cpuif_deactivate();
- pr_debug("Powering off\n");
+ INFO("Powering off\n");
/* Power off the CPU */
ret = tftf_psci_cpu_off();
- mp_printf("Failed to power off (%d)\n", ret);
+ ERROR("Failed to power off (%d)\n", ret);
/*
* PSCI CPU_OFF call does not return when successful.
@@ -239,7 +239,7 @@ void __dead2 tftf_warm_boot_main(void)
enable_irq();
isb();
- pr_debug("Booting\n");
+ INFO("Booting\n");
tftf_set_cpu_online();