diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2023-01-22 11:53:56 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2023-02-17 16:08:04 +0000 |
commit | 39efcd1ba6cd66f6d2d027714891fd63fe564f5f (patch) | |
tree | 061f2499a745faf57ffc73d14c82658cd9a1ad67 /src/mainboard/google/peach_pit | |
parent | 3a54f4a7f15dc14a0f70ba781b488d63f5b6238e (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/peach_pit')
-rw-r--r-- | src/mainboard/google/peach_pit/romstage.c | 6 |
1 files changed, 3 insertions, 3 deletions
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", |