From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754090AbcIITG0 (ORCPT ); Fri, 9 Sep 2016 15:06:26 -0400 Received: from mail.skyhub.de ([78.46.96.112]:35421 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015AbcIITGY (ORCPT ); Fri, 9 Sep 2016 15:06:24 -0400 Date: Fri, 9 Sep 2016 21:06:19 +0200 From: Borislav Petkov To: "Moore, Robert" Cc: LKML , "linux-acpi@vger.kernel.org" , "devel@acpica.org" , "Wysocki, Rafael J" , "Box, David E" Subject: Re: [PATCH] ACPICA / Interpreter: Remove redundant newline Message-ID: <20160909190619.4hjrynq6trw4vw45@pd.tnic> References: <20160909161253.30952-1-bp@alien8.de> <94F2FBAB4432B54E8AACC7DFDE6C92E37E4F34B4@ORSMSX110.amr.corp.intel.com> <94F2FBAB4432B54E8AACC7DFDE6C92E37E4F34E9@ORSMSX110.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <94F2FBAB4432B54E8AACC7DFDE6C92E37E4F34E9@ORSMSX110.amr.corp.intel.com> User-Agent: NeoMutt/ (1.7.0) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.