Commit ad686154 authored by Huang Ying's avatar Huang Ying Committed by Len Brown

ACPI, APEI, Remove table not found message

Because APEI tables are optional, these message may confuse users, for
example,

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/599715Reported-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarHuang Ying <ying.huang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 46b91e37
...@@ -466,10 +466,9 @@ static int __init einj_init(void) ...@@ -466,10 +466,9 @@ static int __init einj_init(void)
status = acpi_get_table(ACPI_SIG_EINJ, 0, status = acpi_get_table(ACPI_SIG_EINJ, 0,
(struct acpi_table_header **)&einj_tab); (struct acpi_table_header **)&einj_tab);
if (status == AE_NOT_FOUND) { if (status == AE_NOT_FOUND)
pr_info(EINJ_PFX "Table is not found!\n");
return -ENODEV; return -ENODEV;
} else if (ACPI_FAILURE(status)) { else if (ACPI_FAILURE(status)) {
const char *msg = acpi_format_exception(status); const char *msg = acpi_format_exception(status);
pr_err(EINJ_PFX "Failed to get table, %s\n", msg); pr_err(EINJ_PFX "Failed to get table, %s\n", msg);
return -EINVAL; return -EINVAL;
......
...@@ -1125,10 +1125,9 @@ static int __init erst_init(void) ...@@ -1125,10 +1125,9 @@ static int __init erst_init(void)
status = acpi_get_table(ACPI_SIG_ERST, 0, status = acpi_get_table(ACPI_SIG_ERST, 0,
(struct acpi_table_header **)&erst_tab); (struct acpi_table_header **)&erst_tab);
if (status == AE_NOT_FOUND) { if (status == AE_NOT_FOUND)
pr_info(ERST_PFX "Table is not found!\n");
goto err; goto err;
} else if (ACPI_FAILURE(status)) { else if (ACPI_FAILURE(status)) {
const char *msg = acpi_format_exception(status); const char *msg = acpi_format_exception(status);
pr_err(ERST_PFX "Failed to get table, %s\n", msg); pr_err(ERST_PFX "Failed to get table, %s\n", msg);
rc = -EINVAL; rc = -EINVAL;
......
...@@ -221,10 +221,9 @@ void __init acpi_hest_init(void) ...@@ -221,10 +221,9 @@ void __init acpi_hest_init(void)
status = acpi_get_table(ACPI_SIG_HEST, 0, status = acpi_get_table(ACPI_SIG_HEST, 0,
(struct acpi_table_header **)&hest_tab); (struct acpi_table_header **)&hest_tab);
if (status == AE_NOT_FOUND) { if (status == AE_NOT_FOUND)
pr_info(HEST_PFX "Table not found.\n");
goto err; goto err;
} else if (ACPI_FAILURE(status)) { else if (ACPI_FAILURE(status)) {
const char *msg = acpi_format_exception(status); const char *msg = acpi_format_exception(status);
pr_err(HEST_PFX "Failed to get table, %s\n", msg); pr_err(HEST_PFX "Failed to get table, %s\n", msg);
rc = -EINVAL; rc = -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment