diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-10-20 11:53:54 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-20 22:30:17 +0300 |
commit | 80f9b05553088af08fd9dbffc4db8b76f804cc13 (patch) | |
tree | 8e67a64ade16b94152cc42dd50157e1fcf8dd645 /android/cutils | |
parent | 09b89472207868054743fe962395fc3367ada0bb (diff) | |
download | bluez-80f9b05553088af08fd9dbffc4db8b76f804cc13.tar.gz |
android: Improve cutils/log.h stubs
Provide dummy function that will use ALOG* macros parameters. This fix
build errors about set-but-not-used used local variables on linux.
Diffstat (limited to 'android/cutils')
-rw-r--r-- | android/cutils/log.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/android/cutils/log.h b/android/cutils/log.h index d87da72f0..389542b18 100644 --- a/android/cutils/log.h +++ b/android/cutils/log.h @@ -17,11 +17,13 @@ #ifndef _CUTILS_LOG_H #define _CUTILS_LOG_H -#define ALOGV(...) -#define ALOGD(...) -#define ALOGI(...) -#define ALOGW(...) -#define ALOGE(...) +static inline void ALOG() {}; + +#define ALOGV(...) ALOG("V", __VA_ARGS__) +#define ALOGD(...) ALOG("D", __VA_ARGS__) +#define ALOGI(...) ALOG("I", __VA_ARGS__) +#define ALOGW(...) ALOG("W", __VA_ARGS__) +#define ALOGE(...) ALOG("E", __VA_ARGS__) #define LOG_ALWAYS_FATAL(...) do { ALOGE(__VA_ARGS__); exit(1); } while (0) #endif // _CUTILS_LOG_H |