diff options
author | Russell King <rmk@arm.linux.org.uk> | 2012-10-25 12:04:28 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2012-10-25 12:14:26 +0100 |
commit | 0385e4a5f14b06e3df772aaebc8aee0db7a45d0f (patch) | |
tree | fc55f67542b7130360ace6ff088c3c1410682331 | |
parent | 2e67ed108763894e78221d99ed2e8e8b5b570199 (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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |