Skip to content

Commit a0d5f3b

Browse files
committed
ACPICA: Drop leading newlines from error messages
Commit 5088814 (ACPICA: AML parser: attempt to continue loading table after error) unintentionally added leading newlines to error messages emitted by ACPICA which caused unexpected things to be printed to the kernel log. Drop these newlines (which effectively reverts the part of commit 5088814 adding them). Fixes: 5088814 (ACPICA: AML parser: attempt to continue loading table after error) Reported-by: Toralf Förster <[email protected]> Reported-by: Guenter Roeck <[email protected]> Cc: 4.17+ <[email protected]> # 4.17+ Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 7daf201 commit a0d5f3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/acpi/acpica/uterror.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,19 +182,19 @@ acpi_ut_prefixed_namespace_error(const char *module_name,
182182
switch (lookup_status) {
183183
case AE_ALREADY_EXISTS:
184184

185-
acpi_os_printf("\n" ACPI_MSG_BIOS_ERROR);
185+
acpi_os_printf(ACPI_MSG_BIOS_ERROR);
186186
message = "Failure creating";
187187
break;
188188

189189
case AE_NOT_FOUND:
190190

191-
acpi_os_printf("\n" ACPI_MSG_BIOS_ERROR);
191+
acpi_os_printf(ACPI_MSG_BIOS_ERROR);
192192
message = "Could not resolve";
193193
break;
194194

195195
default:
196196

197-
acpi_os_printf("\n" ACPI_MSG_ERROR);
197+
acpi_os_printf(ACPI_MSG_ERROR);
198198
message = "Failure resolving";
199199
break;
200200
}

0 commit comments

Comments
 (0)