Просмотр исходного кода

ACPICA: Drop leading newlines from error messages

Commit 5088814a6e93 (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 5088814a6e93 adding them).

Fixes: 5088814a6e93 (ACPICA: AML parser: attempt to continue loading table after error)
Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Cc: 4.17+ <stable@vger.kernel.org> # 4.17+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Rafael J. Wysocki 7 лет назад
Родитель
Сommit
a0d5f3b69a
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      drivers/acpi/acpica/uterror.c

+ 3 - 3
drivers/acpi/acpica/uterror.c

@@ -182,19 +182,19 @@ acpi_ut_prefixed_namespace_error(const char *module_name,
 	switch (lookup_status) {
 	switch (lookup_status) {
 	case AE_ALREADY_EXISTS:
 	case AE_ALREADY_EXISTS:
 
 
-		acpi_os_printf("\n" ACPI_MSG_BIOS_ERROR);
+		acpi_os_printf(ACPI_MSG_BIOS_ERROR);
 		message = "Failure creating";
 		message = "Failure creating";
 		break;
 		break;
 
 
 	case AE_NOT_FOUND:
 	case AE_NOT_FOUND:
 
 
-		acpi_os_printf("\n" ACPI_MSG_BIOS_ERROR);
+		acpi_os_printf(ACPI_MSG_BIOS_ERROR);
 		message = "Could not resolve";
 		message = "Could not resolve";
 		break;
 		break;
 
 
 	default:
 	default:
 
 
-		acpi_os_printf("\n" ACPI_MSG_ERROR);
+		acpi_os_printf(ACPI_MSG_ERROR);
 		message = "Failure resolving";
 		message = "Failure resolving";
 		break;
 		break;
 	}
 	}