diff options
author | Len Brown <len.brown@intel.com> | 2011-01-12 18:16:14 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-01-12 18:16:14 +0100 |
commit | eab001bf88f68653e87a7d90124a2241131dbeda (patch) | |
tree | f3b93ec36c4fe09a7f49a27b76add630f6ec76f0 /drivers/acpi/osl.c | |
parent | Merge branch 'misc' into release (diff) | |
parent | ACPI: fix resource check message (diff) | |
download | linux-eab001bf88f68653e87a7d90124a2241131dbeda.tar.xz linux-eab001bf88f68653e87a7d90124a2241131dbeda.zip |
Merge branch 'misc' into test
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 3a7b4879fd99..e2dd6de5d50c 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -1233,8 +1233,7 @@ __setup("acpi_enforce_resources=", acpi_enforce_resources_setup); int acpi_check_resource_conflict(const struct resource *res) { struct acpi_res_list *res_list_elem; - int ioport; - int clash = 0; + int ioport = 0, clash = 0; if (acpi_enforce_resources == ENFORCE_RESOURCES_NO) return 0; @@ -1264,9 +1263,13 @@ int acpi_check_resource_conflict(const struct resource *res) if (clash) { if (acpi_enforce_resources != ENFORCE_RESOURCES_NO) { printk(KERN_WARNING "ACPI: resource %s %pR" - " conflicts with ACPI region %s %pR\n", + " conflicts with ACPI region %s " + "[%s 0x%zx-0x%zx]\n", res->name, res, res_list_elem->name, - res_list_elem); + (res_list_elem->resource_type == + ACPI_ADR_SPACE_SYSTEM_IO) ? "io" : "mem", + (size_t) res_list_elem->start, + (size_t) res_list_elem->end); if (acpi_enforce_resources == ENFORCE_RESOURCES_LAX) printk(KERN_NOTICE "ACPI: This conflict may" " cause random problems and system" |