summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-01-22 11:53:56 +0100
committerFelix Singer <felixsinger@posteo.net>2023-02-17 16:08:04 +0000
commit39efcd1ba6cd66f6d2d027714891fd63fe564f5f (patch)
tree061f2499a745faf57ffc73d14c82658cd9a1ad67 /src/mainboard/google
parent3a54f4a7f15dc14a0f70ba781b488d63f5b6238e (diff)
tree: Use __func__ instead of hard-coded names
Change-Id: I87e383ce2f28340dbc3c843dbf2ed0e47c00a723 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72382 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/auron/ec.c2
-rw-r--r--src/mainboard/google/cyan/ec.c2
-rw-r--r--src/mainboard/google/link/ec.c2
-rw-r--r--src/mainboard/google/peach_pit/romstage.c6
-rw-r--r--src/mainboard/google/rambi/ec.c2
-rw-r--r--src/mainboard/google/slippy/ec.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/src/mainboard/google/auron/ec.c b/src/mainboard/google/auron/ec.c
index a3ee95bd0b..2334cb61a4 100644
--- a/src/mainboard/google/auron/ec.c
+++ b/src/mainboard/google/auron/ec.c
@@ -16,7 +16,7 @@ void mainboard_ec_init(void)
int s3_wakeup = acpi_is_wakeup_s3();
- printk(BIOS_DEBUG, "mainboard_ec_init\n");
+ printk(BIOS_DEBUG, "%s\n", __func__);
post_code(0xf0);
google_chromeec_events_init(&info, s3_wakeup);
diff --git a/src/mainboard/google/cyan/ec.c b/src/mainboard/google/cyan/ec.c
index 41ef91e497..e34ea7f258 100644
--- a/src/mainboard/google/cyan/ec.c
+++ b/src/mainboard/google/cyan/ec.c
@@ -14,7 +14,7 @@ void mainboard_ec_init(void)
.s5_wake_events = MAINBOARD_EC_S5_WAKE_EVENTS,
};
- printk(BIOS_DEBUG, "mainboard_ec_init\n");
+ printk(BIOS_DEBUG, "%s\n", __func__);
post_code(0xf0);
google_chromeec_events_init(&info, acpi_is_wakeup_s3());
diff --git a/src/mainboard/google/link/ec.c b/src/mainboard/google/link/ec.c
index 6f87f1df04..2c2ed74923 100644
--- a/src/mainboard/google/link/ec.c
+++ b/src/mainboard/google/link/ec.c
@@ -14,7 +14,7 @@ void link_ec_init(void)
.s5_wake_events = LINK_EC_S5_WAKE_EVENTS,
};
- printk(BIOS_DEBUG, "link_ec_init\n");
+ printk(BIOS_DEBUG, "%s\n", __func__);
post_code(0xf0);
google_chromeec_events_init(&info, acpi_is_wakeup_s3());
diff --git a/src/mainboard/google/peach_pit/romstage.c b/src/mainboard/google/peach_pit/romstage.c
index 91487807cc..5a4863d79a 100644
--- a/src/mainboard/google/peach_pit/romstage.c
+++ b/src/mainboard/google/peach_pit/romstage.c
@@ -173,13 +173,13 @@ static void simple_spi_test(void)
}
if (rdev_readat(boot_dev, data, 0, amt) < amt) {
- printk(BIOS_SPEW, "simple_spi_test fails\n");
+ printk(BIOS_SPEW, "%s fails\n", __func__);
return;
}
for (i = 0; i < amt; i += 4){
if (rdev_readat(boot_dev, &in, i, 4) < 4) {
- printk(BIOS_SPEW, "simple_spi_test fails at %d\n", i);
+ printk(BIOS_SPEW, "%s fails at %d\n", __func__, i);
return;
}
if (data[i/4] != in){
@@ -188,7 +188,7 @@ static void simple_spi_test(void)
i, &data[i/4], (unsigned long)data[i/4], (unsigned long)in);
/* reread it to see which is wrong. */
if (rdev_readat(boot_dev, &in, i, 4) < 4) {
- printk(BIOS_SPEW, "simple_spi_test fails at %d\n", i);
+ printk(BIOS_SPEW, "%s fails at %d\n", __func__, i);
return;
}
printk(BIOS_SPEW, "RTRY at %d(%p):\nRAM %08lx\nSPI %08lx\n",
diff --git a/src/mainboard/google/rambi/ec.c b/src/mainboard/google/rambi/ec.c
index 7588eff8b9..f8b86ee533 100644
--- a/src/mainboard/google/rambi/ec.c
+++ b/src/mainboard/google/rambi/ec.c
@@ -16,7 +16,7 @@ void mainboard_ec_init(void)
.s5_wake_events = MAINBOARD_EC_S5_WAKE_EVENTS,
};
- printk(BIOS_DEBUG, "mainboard_ec_init\n");
+ printk(BIOS_DEBUG, "%s\n", __func__);
post_code(0xf0);
google_chromeec_events_init(&info, s3_wakeup);
diff --git a/src/mainboard/google/slippy/ec.c b/src/mainboard/google/slippy/ec.c
index a3ee95bd0b..2334cb61a4 100644
--- a/src/mainboard/google/slippy/ec.c
+++ b/src/mainboard/google/slippy/ec.c
@@ -16,7 +16,7 @@ void mainboard_ec_init(void)
int s3_wakeup = acpi_is_wakeup_s3();
- printk(BIOS_DEBUG, "mainboard_ec_init\n");
+ printk(BIOS_DEBUG, "%s\n", __func__);
post_code(0xf0);
google_chromeec_events_init(&info, s3_wakeup);