Re: [PATCH] ACPICA / Interpreter: Remove redundant newline
From: Borislav Petkov
Date: Fri Sep 09 2016 - 15:06:31 EST
On Fri, Sep 09, 2016 at 06:45:23PM +0000, Moore, Robert wrote:
> Well, I never thought I would write a couple lines of code like this, but here is a solution that should make everyone happy.
>
> diff --git a/source/components/tables/tbxfload.c b/source/components/tables/tbxfload.c
> index 6a937b1..73ee1a2 100644
> --- a/source/components/tables/tbxfload.c
> +++ b/source/components/tables/tbxfload.c
> @@ -334,7 +334,7 @@ AcpiTbLoadNamespace (
> if (!TablesFailed)
> {
> ACPI_INFO ((
> - "%u ACPI AML tables successfully acquired and loaded\n",
> + "%u ACPI AML tables successfully acquired and loaded",
> TablesLoaded));
> }
> else
> @@ -348,6 +348,11 @@ AcpiTbLoadNamespace (
> Status = AE_CTRL_TERMINATE;
> }
>
> +#ifdef ACPI_APPLICATION
> + ACPI_DEBUG_PRINT_RAW ((ACPI_DB_INIT, "\n"));
> +#endif
> +
> +
> UnlockAndExit:
> (void) AcpiUtReleaseMutex (ACPI_MTX_TABLES);
> return_ACPI_STATUS (Status);
Works for me. A lot of kernel code does stuff like that already:
$ git grep -E "\(\"\\\n\"\)" | wc -l
1550
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.