Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102012
b: refs/heads/master
c: 11f2a61
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Andi Kleen committed Jul 16, 2008
1 parent 35701a2 commit f523339
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6719561f9b4281491f58ed9f0bbc179dc7db95b7
refs/heads/master: 11f2a61ab418305167f9a3f3a31a50449222f64b
14 changes: 5 additions & 9 deletions trunk/drivers/acpi/utilities/utmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ACPI_MODULE_NAME("utmisc")
******************************************************************************/
const char *acpi_ut_validate_exception(acpi_status status)
{
acpi_status sub_status;
u32 sub_status;
const char *exception = NULL;

ACPI_FUNCTION_ENTRY();
Expand All @@ -85,32 +85,28 @@ const char *acpi_ut_validate_exception(acpi_status status)
case AE_CODE_PROGRAMMER:

if (sub_status <= AE_CODE_PGM_MAX) {
exception =
acpi_gbl_exception_names_pgm[sub_status - 1];
exception = acpi_gbl_exception_names_pgm[sub_status];
}
break;

case AE_CODE_ACPI_TABLES:

if (sub_status <= AE_CODE_TBL_MAX) {
exception =
acpi_gbl_exception_names_tbl[sub_status - 1];
exception = acpi_gbl_exception_names_tbl[sub_status];
}
break;

case AE_CODE_AML:

if (sub_status <= AE_CODE_AML_MAX) {
exception =
acpi_gbl_exception_names_aml[sub_status - 1];
exception = acpi_gbl_exception_names_aml[sub_status];
}
break;

case AE_CODE_CONTROL:

if (sub_status <= AE_CODE_CTRL_MAX) {
exception =
acpi_gbl_exception_names_ctrl[sub_status - 1];
exception = acpi_gbl_exception_names_ctrl[sub_status];
}
break;

Expand Down
4 changes: 4 additions & 0 deletions trunk/include/acpi/acexcep.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ char const *acpi_gbl_exception_names_env[] = {
};

char const *acpi_gbl_exception_names_pgm[] = {
NULL,
"AE_BAD_PARAMETER",
"AE_BAD_CHARACTER",
"AE_BAD_PATHNAME",
Expand All @@ -239,6 +240,7 @@ char const *acpi_gbl_exception_names_pgm[] = {
};

char const *acpi_gbl_exception_names_tbl[] = {
NULL,
"AE_BAD_SIGNATURE",
"AE_BAD_HEADER",
"AE_BAD_CHECKSUM",
Expand All @@ -248,6 +250,7 @@ char const *acpi_gbl_exception_names_tbl[] = {
};

char const *acpi_gbl_exception_names_aml[] = {
NULL,
"AE_AML_ERROR",
"AE_AML_PARSE",
"AE_AML_BAD_OPCODE",
Expand Down Expand Up @@ -285,6 +288,7 @@ char const *acpi_gbl_exception_names_aml[] = {
};

char const *acpi_gbl_exception_names_ctrl[] = {
NULL,
"AE_CTRL_RETURN_VALUE",
"AE_CTRL_PENDING",
"AE_CTRL_TERMINATE",
Expand Down

0 comments on commit f523339

Please sign in to comment.