summaryrefslogtreecommitdiff
path: root/src/arch/x86/acpi_bert_storage.c
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2022-01-21 17:06:20 -0800
committerJulius Werner <jwerner@chromium.org>2022-02-07 23:29:09 +0000
commite9665959edeba6ae2d5364c4f7339704b6b6fd42 (patch)
treee3cd9e0e6e91c9b6bd5c6f586a9abee1d654b5dd /src/arch/x86/acpi_bert_storage.c
parent266041f0e62296737617cc2fcfa97f31e2b43aea (diff)
treewide: Remove "ERROR: "/"WARN: " prefixes from log messages
Now that the console system itself will clearly differentiate loglevels, it is no longer necessary to explicitly add "ERROR: " in front of every BIOS_ERR message to help it stand out more (and allow automated tooling to grep for it). Removing all these extra .rodata characters should save us a nice little amount of binary size. This patch was created by running find src/ -type f -exec perl -0777 -pi -e 's/printk\(\s*BIOS_ERR,\s*"ERROR: /printk\(BIOS_ERR, "/gi' '{}' ';' and doing some cursory review/cleanup on the result. Then doing the same thing for BIOS_WARN with 's/printk\(\s*BIOS_WARNING,\s*"WARN(ING)?: /printk\(BIOS_WARNING, "/gi' Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I3d0573acb23d2df53db6813cb1a5fc31b5357db8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61309 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Lance Zhao Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
Diffstat (limited to 'src/arch/x86/acpi_bert_storage.c')
-rw-r--r--src/arch/x86/acpi_bert_storage.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/arch/x86/acpi_bert_storage.c b/src/arch/x86/acpi_bert_storage.c
index a9c06f48fe..8559c06dfb 100644
--- a/src/arch/x86/acpi_bert_storage.c
+++ b/src/arch/x86/acpi_bert_storage.c
@@ -127,7 +127,7 @@ static acpi_generic_error_status_t *new_bert_status(void)
status = bert_allocate_storage(sizeof(*status));
if (!status) {
- printk(BIOS_ERR, "Error: New BERT error entry would exceed available region\n");
+ printk(BIOS_ERR, "New BERT error entry would exceed available region\n");
return NULL;
}
@@ -159,13 +159,13 @@ static acpi_hest_generic_data_v300_t *new_generic_error_entry(
acpi_hest_generic_data_v300_t *entry;
if (bert_entry_count(status) == GENERIC_ERR_STS_ENTRY_COUNT_MAX) {
- printk(BIOS_ERR, "Error: New BERT error would exceed maximum entries\n");
+ printk(BIOS_ERR, "New BERT error would exceed maximum entries\n");
return NULL;
}
entry = bert_allocate_storage(sizeof(*entry));
if (!entry) {
- printk(BIOS_ERR, "Error: New BERT error entry would exceed available region\n");
+ printk(BIOS_ERR, "New BERT error entry would exceed available region\n");
return NULL;
}
@@ -191,7 +191,7 @@ static size_t sizeof_error_section(guid_t *guid)
return sizeof(cper_fw_err_rec_section_t);
/* else if ... sizeof(structures not yet defined) */
- printk(BIOS_ERR, "Error: Requested size of unrecognized CPER GUID\n");
+ printk(BIOS_ERR, "Requested size of unrecognized CPER GUID\n");
return 0;
}
@@ -199,7 +199,7 @@ void *new_cper_fw_error_crashlog(acpi_generic_error_status_t *status, size_t cl_
{
void *cl_data = bert_allocate_storage(cl_size);
if (!cl_data) {
- printk(BIOS_ERR, "Error: Crashlog entry (size %zu) would exceed available region\n",
+ printk(BIOS_ERR, "Crashlog entry (size %zu) would exceed available region\n",
cl_size);
return NULL;
}
@@ -348,7 +348,7 @@ cper_ia32x64_context_t *new_cper_ia32x64_ctx(
return NULL;
if (cper_ia32x64_proc_num_ctxs(x86err) == I32X64SEC_VALID_CTXNUM_MAX) {
- printk(BIOS_ERR, "Error: New IA32X64 %s context entry would exceed max allowable contexts\n",
+ printk(BIOS_ERR, "New IA32X64 %s context entry would exceed max allowable contexts\n",
ctx_names[type]);
return NULL;
}
@@ -356,7 +356,7 @@ cper_ia32x64_context_t *new_cper_ia32x64_ctx(
size = cper_ia32x64_ctx_sz_bytype(type, num);
ctx = bert_allocate_storage(size);
if (!ctx) {
- printk(BIOS_ERR, "Error: New IA32X64 %s context entry would exceed available region\n",
+ printk(BIOS_ERR, "New IA32X64 %s context entry would exceed available region\n",
ctx_names[type]);
return NULL;
}
@@ -402,14 +402,14 @@ cper_ia32x64_proc_error_info_t *new_cper_ia32x64_check(
return NULL;
if (cper_ia32x64_proc_num_chks(x86err) == I32X64SEC_VALID_ERRNUM_MAX) {
- printk(BIOS_ERR, "Error: New IA32X64 %s check entry would exceed max allowable errors\n",
+ printk(BIOS_ERR, "New IA32X64 %s check entry would exceed max allowable errors\n",
check_names[type]);
return NULL;
}
check = bert_allocate_storage(sizeof(*check));
if (!check) {
- printk(BIOS_ERR, "Error: New IA32X64 %s check entry would exceed available region\n",
+ printk(BIOS_ERR, "New IA32X64 %s check entry would exceed available region\n",
check_names[type]);
return NULL;
}
@@ -518,7 +518,7 @@ acpi_generic_error_status_t *bert_new_event(guid_t *guid)
size += sizeof_error_section(guid);
if (size > bert_storage_remaining()) {
- printk(BIOS_ERR, "Error: Not enough BERT region space to add event for type %s\n",
+ printk(BIOS_ERR, "Not enough BERT region space to add event for type %s\n",
generic_error_name(guid));
return NULL;
}
@@ -571,7 +571,7 @@ cper_ia32x64_context_t *cper_new_ia32x64_context_msr(
*/
__weak void bert_reserved_region(void **start, size_t *size)
{
- printk(BIOS_ERR, "Error: %s not implemented. BERT region generation disabled\n",
+ printk(BIOS_ERR, "%s not implemented. BERT region generation disabled\n",
__func__);
*start = NULL;
*size = 0;