summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-04-16 23:52:55 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-04-18 18:49:56 +0000
commit0e2d515b99634e3bee2479a17a9717ca939e5ac1 (patch)
tree8c05128e3b18a11cb47ded92d2c320a74de12e21
parent365f52eb1f3692133bae8cc7e0cac5dc81d9de92 (diff)
soc/intel/*/vr_config.c: Use __func__ in error message
The error message has been copy-pasted across various functions, so it is nearly impossible to know which function printed it. So, use __func__ to print that information. Change-Id: I55438c2b36cc3b21f3f168bf98b0aca5fd50bbbc Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40446 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/intel/cannonlake/vr_config.c6
-rw-r--r--src/soc/intel/skylake/vr_config.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/soc/intel/cannonlake/vr_config.c b/src/soc/intel/cannonlake/vr_config.c
index 87fb0f0a87..455980c64f 100644
--- a/src/soc/intel/cannonlake/vr_config.c
+++ b/src/soc/intel/cannonlake/vr_config.c
@@ -305,7 +305,7 @@ static uint16_t get_sku_icc_max(int domain)
return icc_max[domain];
}
default:
- printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in VR-config\n", mch_id);
+ printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in %s\n", mch_id, __func__);
}
return 0;
}
@@ -398,7 +398,7 @@ static uint16_t get_sku_ac_dc_loadline(const int domain)
return loadline[domain];
}
default:
- printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in VR-config\n", mch_id);
+ printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in %s\n", mch_id, __func__);
}
return 0;
}
@@ -492,7 +492,7 @@ static uint16_t get_sku_tdc_powerlimit(int domain)
return tdc[domain];
}
default:
- printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in VR-config\n", mch_id);
+ printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in %s\n", mch_id, __func__);
}
return 0;
diff --git a/src/soc/intel/skylake/vr_config.c b/src/soc/intel/skylake/vr_config.c
index c7db74a076..391222e9aa 100644
--- a/src/soc/intel/skylake/vr_config.c
+++ b/src/soc/intel/skylake/vr_config.c
@@ -223,7 +223,7 @@ static uint16_t get_sku_icc_max(int domain)
return icc_max[domain];
}
default:
- printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in VR-config\n", mch_id);
+ printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in %s\n", mch_id, __func__);
}
return 0;
}
@@ -293,7 +293,7 @@ static uint16_t get_sku_ac_dc_loadline(const int domain)
return loadline[domain];
}
default:
- printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in VR-config\n", mch_id);
+ printk(BIOS_ERR, "ERROR: Unknown MCH (0x%x) in %s\n", mch_id, __func__);
}
return 0;
}