From 58089e859dbaca7026cf61df3343073122a7c0a9 Mon Sep 17 00:00:00 2001 From: Mike Loptien Date: Tue, 29 Jan 2013 15:45:09 -0700 Subject: Family 14: Update for string portability. Update function messages to be more portable by using the __func__ compiler command instead of hard coded function names. Change-Id: I6327c9769c2544bbc56155a2f89afd767487faf6 Signed-off-by: Mike Loptien Reviewed-on: http://review.coreboot.org/2227 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks Reviewed-by: Paul Menzel --- src/northbridge/amd/agesa/family14/northbridge.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/northbridge/amd/agesa/family14/northbridge.c') diff --git a/src/northbridge/amd/agesa/family14/northbridge.c b/src/northbridge/amd/agesa/family14/northbridge.c index 06bace4038..3d0b97f608 100644 --- a/src/northbridge/amd/agesa/family14/northbridge.c +++ b/src/northbridge/amd/agesa/family14/northbridge.c @@ -335,7 +335,7 @@ static void nb_read_resources(device_t dev) u32 nodeid; struct bus *link; - printk(BIOS_DEBUG, "\nFam14h - nb_read_resources.\n"); + printk(BIOS_DEBUG, "\nFam14h - %s\n", __func__); nodeid = amdfam14_nodeid(dev); for (link = dev->link_list; link; link = link->next) { @@ -364,7 +364,7 @@ static void set_resource(device_t dev, struct resource *resource, u32 nodeid) unsigned reg, link_num; char buf[50]; - printk(BIOS_DEBUG, "\nFam14h - set_resource.\n"); + printk(BIOS_DEBUG, "\nFam14h - %s\n", __func__); /* Make certain the resource has actually been set */ if (!(resource->flags & IORESOURCE_ASSIGNED)) { @@ -414,7 +414,7 @@ static void create_vga_resource(device_t dev, unsigned nodeid) { struct bus *link; - printk(BIOS_DEBUG, "\nFam14h - create_vga_resource.\n"); + printk(BIOS_DEBUG, "\nFam14h - %s\n", __func__); /* find out which link the VGA card is connected, * we only deal with the 'first' vga card */ @@ -448,7 +448,7 @@ static void nb_set_resources(device_t dev) struct bus *bus; struct resource *res; - printk(BIOS_DEBUG, "\nFam14h - nb_set_resources.\n"); + printk(BIOS_DEBUG, "\nFam14h - %s\n", __func__); /* Find the nodeid */ nodeid = amdfam14_nodeid(dev); @@ -479,7 +479,7 @@ static void domain_read_resources(device_t dev) { unsigned reg; - printk(BIOS_DEBUG, "\nFam14h - domain_read_resources.\n"); + printk(BIOS_DEBUG, "\nFam14h - %s\n", __func__); /* Find the already assigned resource pairs */ get_fx_devs(); @@ -566,7 +566,7 @@ static void setup_uma_memory(void) static void domain_set_resources(device_t dev) { - printk(BIOS_DEBUG, "\nFam14h - domain_set_resources.\n"); + printk(BIOS_DEBUG, "\nFam14h - %s\n", __func__); printk(BIOS_DEBUG, " amsr - incoming dev = %08x\n", (u32) dev); #if CONFIG_PCI_64BIT_PREF_MEM @@ -796,7 +796,7 @@ static void domain_enable_resources(device_t dev) #endif /* Must be called after PCI enumeration and resource allocation */ - printk(BIOS_DEBUG, "\nFam14h - domain_enable_resources: AmdInitMid.\n"); + printk(BIOS_DEBUG, "\nFam14h - %s\n", __func__); #if CONFIG_HAVE_ACPI_RESUME if (acpi_slp_type != 3) { -- cgit v1.2.3