瀏覽代碼

ACPI: add dump_stack() to trace acpi_format_exception programming errors

Dump the stack so we can find the secretive caller to acpi_format_exception().

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Andrew Morton 17 年之前
父節點
當前提交
3e0d69ecf0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/acpi/utilities/utglobal.c

+ 1 - 0
drivers/acpi/utilities/utglobal.c

@@ -126,6 +126,7 @@ const char *acpi_format_exception(acpi_status status)
 			    "Unknown exception code: 0x%8.8X", status));
 			    "Unknown exception code: 0x%8.8X", status));
 
 
 		exception = "UNKNOWN_STATUS_CODE";
 		exception = "UNKNOWN_STATUS_CODE";
+		dump_stack();
 	}
 	}
 
 
 	return (ACPI_CAST_PTR(const char, exception));
 	return (ACPI_CAST_PTR(const char, exception));