Skip to content

Commit

Permalink
Fix Android log definition typos (#729)
Browse files Browse the repository at this point in the history
The definitions for Android log macros LOG<X> were all guarded by LOGE,
likely due to a copy-paste oversight when the macros were introduced in
vsomeip 3.3.0.
  • Loading branch information
falk-haleytek authored Aug 22, 2024
1 parent 5b4d2a6 commit 0c0815a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions implementation/logger/src/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#endif

#define ALOGW(LOG_TAG, ...) ((void)ALOG(LOG_WARN, LOG_TAG, __VA_ARGS__))
#ifndef LOGE
#ifndef LOGW
#define LOGW ALOGW
#endif

Expand All @@ -35,7 +35,7 @@
#endif

#define ALOGI(LOG_TAG, ...) ((void)ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__))
#ifndef LOGE
#ifndef LOGI
#define LOGI ALOGI
#endif

Expand All @@ -44,7 +44,7 @@
#endif

#define ALOGD(LOG_TAG, ...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__))
#ifndef LOGE
#ifndef LOGD
#define LOGD ALOGD
#endif

Expand All @@ -53,7 +53,7 @@
#endif

#define ALOGV(LOG_TAG, ...) ((void)ALOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__))
#ifndef LOGE
#ifndef LOGV
#define LOGV ALOGV
#endif

Expand Down
2 changes: 1 addition & 1 deletion implementation/tracing/src/connector_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#endif

#define ALOGI(LOG_TAG, ...) ((void)ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__))
#ifndef LOGE
#ifndef LOGI
#define LOGI ALOGI
#endif

Expand Down

0 comments on commit 0c0815a

Please sign in to comment.