From 39efcd1ba6cd66f6d2d027714891fd63fe564f5f Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 22 Jan 2023 11:53:56 +0100 Subject: tree: Use __func__ instead of hard-coded names Change-Id: I87e383ce2f28340dbc3c843dbf2ed0e47c00a723 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/72382 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- src/mainboard/google/auron/ec.c | 2 +- src/mainboard/google/cyan/ec.c | 2 +- src/mainboard/google/link/ec.c | 2 +- src/mainboard/google/peach_pit/romstage.c | 6 +++--- src/mainboard/google/rambi/ec.c | 2 +- src/mainboard/google/slippy/ec.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/mainboard/google') 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); -- cgit v1.2.3