summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-01-07 02:46:17 +0000
committerNico Huber <nico.h@gmx.de>2021-01-09 15:22:11 +0000
commit81ffd00856800b8fa0d2d008e28e0e0916169661 (patch)
tree40408267aeeb40266969c98e6d9b4b82639757bb /src/mainboard/google
parent98b51f4cf93337a4ea0e4276d6afebde28005ad2 (diff)
mb/google/parrot: Get rid of hard-coded function names in printks
Instead of hard-coding function names in strings, use the __func__ constant for better maintainability. Change-Id: I151560cd5a135e00f494eda3f9d3b592ee9d984a Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49199 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/parrot/smihandler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/google/parrot/smihandler.c b/src/mainboard/google/parrot/smihandler.c
index 22e372dead..a0b067ca4a 100644
--- a/src/mainboard/google/parrot/smihandler.c
+++ b/src/mainboard/google/parrot/smihandler.c
@@ -18,7 +18,7 @@ static u8 mainboard_smi_ec(void)
ec_kbc_write_cmd(0x56);
src = ec_kbc_read_ob();
- printk(BIOS_DEBUG, "mainboard_smi_ec src: %x\n", src);
+ printk(BIOS_DEBUG, "%s src: %x\n", __func__, src);
switch (src) {
case EC_BATTERY_CRITICAL:
@@ -36,7 +36,7 @@ static u8 mainboard_smi_ec(void)
void mainboard_smi_gpi(u32 gpi_sts)
{
- printk(BIOS_DEBUG, "mainboard_smi_gpi: %x\n", gpi_sts);
+ printk(BIOS_DEBUG, "%s: %x\n", __func__, gpi_sts);
if (gpi_sts & (1 << EC_SMI_GPI)) {
/* Process all pending events from EC */
while (mainboard_smi_ec() != EC_NO_EVENT);
@@ -51,7 +51,7 @@ void mainboard_smi_gpi(u32 gpi_sts)
void mainboard_smi_sleep(u8 slp_typ)
{
- printk(BIOS_DEBUG, "mainboard_smi_sleep: %x\n", slp_typ);
+ printk(BIOS_DEBUG, "%s: %x\n", __func__, slp_typ);
/* Disable SCI and SMI events */
/* Clear pending events that may trigger immediate wake */
@@ -67,7 +67,7 @@ void mainboard_smi_sleep(u8 slp_typ)
int mainboard_smi_apmc(u8 apmc)
{
- printk(BIOS_DEBUG, "mainboard_smi_apmc: %x\n", apmc);
+ printk(BIOS_DEBUG, "%s: %x\n", __func__, apmc);
switch (apmc) {
case APM_CNT_ACPI_ENABLE:
printk(BIOS_DEBUG, "APMC: ACPI_EN\n");