Skip to content

Commit

Permalink
ACPI: EC: "DEBUG" needs to be defined earlier
Browse files Browse the repository at this point in the history
The "DEBUG" symbol needs to be defined before #including <linux/kernel.h> to
get the pr_debug() working.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Márton Németh authored and Len Brown committed Jan 24, 2008
1 parent 86dae01 commit d772b3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

/* Uncomment next line to get verbose print outs*/
/* #define DEBUG */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
Expand All @@ -47,9 +50,6 @@
#undef PREFIX
#define PREFIX "ACPI: EC: "

/* Uncomment next line to get verbose print outs*/
/* #define DEBUG */

/* EC status register */
#define ACPI_EC_FLAG_OBF 0x01 /* Output buffer full */
#define ACPI_EC_FLAG_IBF 0x02 /* Input buffer full */
Expand Down

0 comments on commit d772b3b

Please sign in to comment.