Separate logging definitions in C
Change-Id: I1d79814d1fd74e92a280f355c535517618c51752
This commit is contained in:
parent
787945bf1e
commit
827ced8486
1 changed files with 8 additions and 4 deletions
|
@ -18,6 +18,13 @@
|
||||||
#ifndef LATINIME_DEFINES_H
|
#ifndef LATINIME_DEFINES_H
|
||||||
#define 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
|
#ifdef FLAG_DO_PROFILE
|
||||||
// Profiler
|
// Profiler
|
||||||
#include <cutils/log.h>
|
#include <cutils/log.h>
|
||||||
|
@ -93,10 +100,7 @@ static void prof_out(void) {
|
||||||
#define DEBUG_PROXIMITY_INFO true
|
#define DEBUG_PROXIMITY_INFO true
|
||||||
|
|
||||||
#else // FLAG_DBG
|
#else // FLAG_DBG
|
||||||
#ifndef FLAG_DO_PROFILE
|
|
||||||
#define LOGE(fmt, ...)
|
|
||||||
#define LOGI(fmt, ...)
|
|
||||||
#endif // FLAG_DO_PROFILE
|
|
||||||
#define DEBUG_DICT false
|
#define DEBUG_DICT false
|
||||||
#define DEBUG_DICT_FULL false
|
#define DEBUG_DICT_FULL false
|
||||||
#define DEBUG_SHOW_FOUND_WORD false
|
#define DEBUG_SHOW_FOUND_WORD false
|
||||||
|
|
Loading…
Reference in a new issue