summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2012-10-25 12:04:28 +0100
committerRussell King <rmk@arm.linux.org.uk>2012-10-25 12:14:26 +0100
commit0385e4a5f14b06e3df772aaebc8aee0db7a45d0f (patch)
treefc55f67542b7130360ace6ff088c3c1410682331
parent2e67ed108763894e78221d99ed2e8e8b5b570199 (diff)
Fix debugging
For debugging, we need to include stdio. While we're here, lets clean up the debug macro a bit too.
-rw-r--r--bmm_lib.c7
1 files 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 <stdio.h>
+#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;