From patchwork Thu Nov 29 11:53:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin King X-Patchwork-Id: 1821261 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id EC5963FC23 for ; Thu, 29 Nov 2012 11:55:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754283Ab2K2Ly5 (ORCPT ); Thu, 29 Nov 2012 06:54:57 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:35020 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753766Ab2K2LxV (ORCPT ); Thu, 29 Nov 2012 06:53:21 -0500 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Te2g9-0002LM-IH; Thu, 29 Nov 2012 11:53:17 +0000 From: Colin King To: Len Brown , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message Date: Thu, 29 Nov 2012 11:53:12 +0000 Message-Id: <1354189996-14431-2-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1354189996-14431-1-git-send-email-colin.king@canonical.com> References: <1354189996-14431-1-git-send-email-colin.king@canonical.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Colin Ian King ACPI_EXCEPTION() already appends a newline, so there is no need for the failed _DCK messaged to include one too. Signed-off-by: Colin Ian King --- drivers/acpi/dock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 88eb143..a873c6b 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -475,7 +475,7 @@ static void handle_dock(struct dock_station *ds, int dock) status = acpi_evaluate_object(ds->handle, "_DCK", &arg_list, &buffer); if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) ACPI_EXCEPTION((AE_INFO, status, "%s - failed to execute" - " _DCK\n", (char *)name_buffer.pointer)); + " _DCK", (char *)name_buffer.pointer)); kfree(buffer.pointer); kfree(name_buffer.pointer);