ACPI: on OSI(Linux), print needed DMI rather than requesting dmidecode output
authorLen Brown <len.brown@intel.com>
Thu, 24 Jan 2008 01:04:28 +0000 (20:04 -0500)
committerLen Brown <len.brown@intel.com>
Thu, 24 Jan 2008 02:23:51 +0000 (21:23 -0500)
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c

index 93ad5f40f2ea33c9276b0504062095bef8f46b71..2203153b5402034aeb1fd7442387aadc68a02cf2 100644 (file)
@@ -1190,10 +1190,16 @@ acpi_os_validate_interface (char *interface)
        if (!strcmp("Linux", interface)) {
                printk(KERN_WARNING PREFIX
                        "System BIOS is requesting _OSI(Linux)\n");
-               printk(KERN_WARNING PREFIX
-                       "If \"acpi_osi=Linux\" works better,\n"
-                       "Please send dmidecode "
-                       "to linux-acpi@vger.kernel.org\n");
+               if (acpi_dmi_dump())
+                       printk(KERN_NOTICE PREFIX
+                               "[please extract dmidecode output]\n");
+               printk(KERN_NOTICE PREFIX
+                       "Please send DMI info above to "
+                       "linux-acpi@vger.kernel.org\n");
+               printk(KERN_NOTICE PREFIX
+                       "If \"acpi_osi=%sLinux\" works better, "
+                       "please notify linux-acpi@vger.kernel.org\n",
+                       osi_linux ? "!" : "");
                if(osi_linux)
                        return AE_OK;
        }