David and Eurico,
Thanks a bunch for the tip. It works !!!
I did a search for LOGD earlier, but there were too many references
in several places in android source, and I just switched to fprintfs.
Whats the easiest way to look at
"build/platforms/android-1.5/common/include/android/log.h" without
using GIT-WEB.
I have cupcake checkout using repo, but I don't find a link to the
above file.
Thanks
Chander
On Jul 1, 8:14 pm, Eurico Inocêncio <
eurico.inocen...@gmail.com>
wrote:
> Hello
>
> With option 1 you just need to define your own helper macros, this is
> what I did in my own debug header
>
> #include <android/log.h>
>
> #define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, "libnav",
> __VA_ARGS__)
> #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG , "libnav",
> __VA_ARGS__)
> #define LOGI(...) __android_log_print(ANDROID_LOG_INFO , "libnav",
> __VA_ARGS__)
> #define LOGW(...) __android_log_print(ANDROID_LOG_WARN , "libnav",
> __VA_ARGS__)
> #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR , "libnav",
> __VA_ARGS__)
>
> #endif // ANDROID_ALOG_H
>
> Works very well
>
> Eurico
>
> 2009/7/1 Chander Pechetty <
cspeche...@gmail.com>: