From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755031AbcGELSo (ORCPT ); Tue, 5 Jul 2016 07:18:44 -0400 Received: from mga09.intel.com ([134.134.136.24]:50875 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755004AbcGELSl (ORCPT ); Tue, 5 Jul 2016 07:18:41 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,579,1459839600"; d="scan'208";a="840879969" From: Lv Zheng To: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Len Brown Cc: Lv Zheng , Lv Zheng , , linux-acpi@vger.kernel.org Subject: [PATCH 5/5] ACPI: Add configuration item to configure ACPICA error logs out Date: Tue, 5 Jul 2016 19:18:28 +0800 Message-Id: X-Mailer: git-send-email 1.7.10 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sometimes, we need to disable ACPICA error logs to leave only ACPICA debug logs enabled for debugging purpose. This is useful when ACPICA error logs become a flood. Reference: https://bugzilla.kernel.org/show_bug.cgi?id=114201 Signed-off-by: Lv Zheng --- drivers/acpi/Kconfig | 7 +++++++ include/acpi/platform/aclinux.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 04af18f..939d235 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -324,6 +324,13 @@ config ACPI_TABLE_UPGRADE initrd, therefore it's safe to say Y. See Documentation/acpi/initrd_table_override.txt for details +config ACPI_NO_ERROR_MESSAGES + bool "Disable error messages" + default n + help + The ACPI subsystem can produce error messages. Saying Y disables + this output. + config ACPI_DEBUG bool "Debug Statements" default n diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 93b61b1..ed27b52 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -77,6 +77,10 @@ #define ACPI_MUTEX_DEBUG #endif +#ifdef CONFIG_ACPI_NO_ERROR_MESSAGES +#define ACPI_NO_ERROR_MESSAGES +#endif + #include #include #include -- 1.7.10