Skip to contentSkip to conversation

ACPI/ERST: Name ERST table in otherwise opaque error messages

PATCH In review Andrew Cooper 2 participants 3 messages Mar 19, 2013 – Mar 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI/ERST: Name ERST table in otherwise opaque error messages

xen/drivers/acpi/apei/erst.c +2 -2
diff -r a6b81234b189 -r 7fdef201c0b4 xen/drivers/acpi/apei/erst.c
@@ -781,11 +781,11 @@ int __init erst_init(void)
 	status = acpi_get_table(ACPI_SIG_ERST, 0,
 				(struct acpi_table_header **)&erst_tab);
 	if (status == AE_NOT_FOUND) {
-		printk(KERN_ERR "Table is not found!\n");
+		printk(KERN_ERR "ERST table is not found!\n");
 		return -ENODEV;
 	} else if (ACPI_FAILURE(status)) {
 		const char *msg = acpi_format_exception(status);
-		printk(KERN_ERR "Failed to get table, %s\n", msg);
+		printk(KERN_ERR "Failed to get ESRT table, %s\n", msg);
 		return -EINVAL;
 	}
#1 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper

diff -r a6b81234b189 -r 7fdef201c0b4 xen/drivers/acpi/apei/erst.c

xen/drivers/acpi/apei/erst.c int __init erst_init(void) · line 788

Quoted 10 lines
xen/drivers/acpi/apei/erst.c +2 -2
@@ -781,11 +781,11 @@ int __init erst_init(void)
 	status = acpi_get_table(ACPI_SIG_ERST, 0,
 				(struct acpi_table_header **)&erst_tab);
 	if (status == AE_NOT_FOUND) {
-		printk(KERN_ERR "Table is not found!\n");
+		printk(KERN_ERR "ERST table is not found!\n");
 		return -ENODEV;
 	} else if (ACPI_FAILURE(status)) {
 		const char *msg = acpi_format_exception(status);
-		printk(KERN_ERR "Failed to get table, %s\n", msg);
+		printk(KERN_ERR "Failed to get ESRT table, %s\n", msg);

I'll fix the spelling, and once at it also lower the severities (these really aren't errors - the former is informational, while the latter is no more than a warning imo).

Jan

Quoted 3 lines
xen/drivers/acpi/apei/erst.c +0 -0
 		return -EINVAL;
 	}
 
#2 lore raw
Quoted 21 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Andrew Cooper

diff -r a6b81234b189 -r 7fdef201c0b4 xen/drivers/acpi/apei/erst.c

xen/drivers/acpi/apei/erst.c int __init erst_init(void) · line 788

Quoted 10 lines
xen/drivers/acpi/apei/erst.c +2 -2
@@ -781,11 +781,11 @@ int __init erst_init(void)
 	status = acpi_get_table(ACPI_SIG_ERST, 0,
 				(struct acpi_table_header **)&erst_tab);
 	if (status == AE_NOT_FOUND) {
-		printk(KERN_ERR "Table is not found!\n");
+		printk(KERN_ERR "ERST table is not found!\n");
 		return -ENODEV;
 	} else if (ACPI_FAILURE(status)) {
 		const char *msg = acpi_format_exception(status);
-		printk(KERN_ERR "Failed to get table, %s\n", msg);
+		printk(KERN_ERR "Failed to get ESRT table, %s\n", msg);

I'll fix the spelling, and once at it also lower the severities (these really aren't errors - the former is informational, while the latter is no more than a warning imo).

Quoted 1 line

Jan

Thanks - I realised the spelling error after I left last night and was going to submit a correction if you hadn't beaten me to it.

~Andrew