Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: turn off all debug output by default

When CONFIG_ACPI_DEBUG=y, the default acpi_dbg_layer and acpi_dbg_level
values built into the ACPI CA have some debug output enabled. We'd
rather be quiet unless the user actually specified the acpi.debug_level
argument.

This enables distros to ship with CONFIG_ACPI_DEBUG=y without
inundating users with debug output.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Bjorn Helgaas and committed by
Len Brown
87b58608 bdd72799

+8
+8
drivers/acpi/bus.c
··· 688 688 if (acpi_disabled) 689 689 return; 690 690 691 + /* 692 + * ACPI CA initializes acpi_dbg_level to non-zero, which means 693 + * we get debug output merely by turning on CONFIG_ACPI_DEBUG. 694 + * Turn it off so we don't get output unless the user specifies 695 + * acpi.debug_level. 696 + */ 697 + acpi_dbg_level = 0; 698 + 691 699 printk(KERN_INFO PREFIX "Core revision %08x\n", ACPI_CA_VERSION); 692 700 693 701 /* enable workarounds, unless strict ACPI spec. compliance */