From 0385e4a5f14b06e3df772aaebc8aee0db7a45d0f Mon Sep 17 00:00:00 2001 From: Russell King Date: Thu, 25 Oct 2012 12:04:28 +0100 Subject: Fix debugging For debugging, we need to include stdio. While we're here, lets clean up the debug macro a bit too. --- bmm_lib.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bmm_lib.c b/bmm_lib.c index e39524d..fa6c350 100644 --- a/bmm_lib.c +++ b/bmm_lib.c @@ -21,12 +21,13 @@ #include "bmm_lib_priv.h" #include "bmm_lib.h" -//#define DEBUG +#undef DEBUG #ifdef DEBUG - #define pr_debug(fmt, arg...) printf(fmt, ##arg) +#include +#define pr_debug(fmt, arg...) printf(fmt, ##arg) #else - #define pr_debug(fmt, arg...) do { } while(0) +#define pr_debug(fmt, arg...) do { } while(0) #endif static int bmm_fd = -1; -- cgit