summaryrefslogtreecommitdiff
path: root/vmeta_lib.h
diff options
context:
space:
mode:
authorJoseph Lo <jlo@marvell.com>2010-10-28 10:45:58 +0800
committerJoseph Lo <jlo@marvell.com>2010-10-28 10:45:58 +0800
commit828f4288fc25b202efc51db1f047240afa61dfb5 (patch)
tree7ed5e3cb205fb54ecb973ae650764b9dd9e0c049 /vmeta_lib.h
parent9014dc8b10cda10477cfae228979b12f2fa92132 (diff)
vmeta add debug file option
Under Android, we cannot use printf. So we write to a debug file instead. It's useful under Android.
Diffstat (limited to 'vmeta_lib.h')
-rwxr-xr-xvmeta_lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vmeta_lib.h b/vmeta_lib.h
index dd9a262..5f8e93f 100755
--- a/vmeta_lib.h
+++ b/vmeta_lib.h
@@ -171,6 +171,8 @@ typedef enum _LOCK_RET_CODE {
}LOCK_RET_CODE;
/* display debug message */
+#define VMETA_LOG_ON 0
+#define VMETA_LOG_FILE "/data/vmeta_dbg.log"
int dbg_printf(UNSG32 dbglevel, const char* format, ...);
typedef sem_t lock_t;