Messages in this thread Patch in this message | | | Date | Fri, 9 Sep 2016 21:06:19 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH] ACPICA / Interpreter: Remove redundant newline |
| |
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.
| |