[PATCH 1/1] acpi_driver: add CONFIG_ACPI_KERN_DEBUG config to enable KERN_DEBUG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the API module, there is no unified configuration switch to control debug 
output, and the current approach is to enable debugging by adding "define DEBUG"
in the file, which is both cumbersome and difficult to manage. a global debug config 
to control the debug output of the ACPI module will be more easily and clearly.

Signed-off-by: Xiong Yining <xiongyining1480@xxxxxxxxxxxxxx>

---
 drivers/acpi/Kconfig  | 6 ++++++
 drivers/acpi/Makefile | 1 +
 2 files changed, 7 insertions(+)

diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index cee82b473dc5..ea198ead57d7 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -479,6 +479,12 @@ config ACPI_REDUCED_HARDWARE_ONLY
 
 	  If you are unsure what to do, do not enable this option.
 
+config ACPI_KERN_DEBUG
+	bool "Acpi kernel debugging"
+	help
+	  This is an option for use by developers, most people should
+	  say N here. This enables ACPI driver KERN_DEBUG.
+
 source "drivers/acpi/nfit/Kconfig"
 source "drivers/acpi/numa/Kconfig"
 source "drivers/acpi/apei/Kconfig"
diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile
index eaa09bf52f17..d0a417e73071 100644
--- a/drivers/acpi/Makefile
+++ b/drivers/acpi/Makefile
@@ -4,6 +4,7 @@
 #
 
 ccflags-$(CONFIG_ACPI_DEBUG)	+= -DACPI_DEBUG_OUTPUT
+ccflags-$(CONFIG_ACPI_KERN_DEBUG)	:= -DDEBUG
 
 #
 # ACPI Boot-Time Table Parsing
-- 
2.34.1





[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux