Skip to content

Commit 991371e

Browse files
acpibobrafaeljw
authored andcommitted
ACPICA: Update/clarify messages for control method failures
ACPICA commit 2efd616e5b1c960f407763e6782f7dc259ea55df Attempting to improve error messages to clarify that errors are bubbled up from the original error, possibly across nested methods. Link: acpica/acpica@2efd616e Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 90791fb commit 991371e

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

drivers/acpi/acpica/dbexec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ acpi_db_execute_method(struct acpi_db_method_info *info,
160160
}
161161

162162
ACPI_EXCEPTION((AE_INFO, status,
163-
"while executing %s from debugger",
163+
"while executing %s from AML Debugger",
164164
info->pathname));
165165

166166
if (status == AE_BUFFER_OVERFLOW) {
167167
ACPI_ERROR((AE_INFO,
168-
"Possible overflow of internal debugger "
168+
"Possible buffer overflow within AML Debugger "
169169
"buffer (size 0x%X needed 0x%X)",
170170
ACPI_DEBUG_BUFFER_SIZE,
171171
(u32)return_obj->length));

drivers/acpi/acpica/psparse.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +523,12 @@ acpi_status acpi_ps_parse_aml(struct acpi_walk_state *walk_state)
523523
if (status == AE_ABORT_METHOD) {
524524
acpi_ns_print_node_pathname(walk_state->
525525
method_node,
526-
"Method aborted:");
526+
"Aborting method");
527527
acpi_os_printf("\n");
528528
} else {
529-
ACPI_ERROR_METHOD
530-
("Method parse/execution failed",
531-
walk_state->method_node, NULL, status);
529+
ACPI_ERROR_METHOD("Aborting method",
530+
walk_state->method_node, NULL,
531+
status);
532532
}
533533
acpi_ex_enter_interpreter();
534534

drivers/acpi/acpica/uterror.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,19 @@ acpi_ut_prefixed_namespace_error(const char *module_name,
183183
case AE_ALREADY_EXISTS:
184184

185185
acpi_os_printf(ACPI_MSG_BIOS_ERROR);
186-
message = "Failure creating";
186+
message = "Failure creating named object";
187187
break;
188188

189189
case AE_NOT_FOUND:
190190

191191
acpi_os_printf(ACPI_MSG_BIOS_ERROR);
192-
message = "Could not resolve";
192+
message = "Could not resolve symbol";
193193
break;
194194

195195
default:
196196

197197
acpi_os_printf(ACPI_MSG_ERROR);
198-
message = "Failure resolving";
198+
message = "Failure resolving symbol";
199199
break;
200200
}
201201

@@ -317,7 +317,8 @@ acpi_ut_method_error(const char *module_name,
317317
}
318318

319319
acpi_ns_print_node_pathname(node, message);
320-
acpi_os_printf(", %s", acpi_format_exception(method_status));
320+
acpi_os_printf(" due to previous error (%s)",
321+
acpi_format_exception(method_status));
321322

322323
ACPI_MSG_SUFFIX;
323324
ACPI_MSG_REDIRECT_END;

0 commit comments

Comments
 (0)