Separate logging definitions in C

Change-Id: I1d79814d1fd74e92a280f355c535517618c51752
This commit is contained in:
satok 2011-07-14 09:01:09 +09:00
parent 787945bf1e
commit 827ced8486

View file

@ -18,6 +18,13 @@
#ifndef LATINIME_DEFINES_H
#define LATINIME_DEFINES_H
#if defined(FLAG_DO_PROFILE) || defined(FLAG_DBG)
#include <cutils/log.h>
#else
#define LOGE(fmt, ...)
#define LOGI(fmt, ...)
#endif
#ifdef FLAG_DO_PROFILE
// Profiler
#include <cutils/log.h>
@ -93,10 +100,7 @@ static void prof_out(void) {
#define DEBUG_PROXIMITY_INFO true
#else // FLAG_DBG
#ifndef FLAG_DO_PROFILE
#define LOGE(fmt, ...)
#define LOGI(fmt, ...)
#endif // FLAG_DO_PROFILE
#define DEBUG_DICT false
#define DEBUG_DICT_FULL false
#define DEBUG_SHOW_FOUND_WORD false