summaryrefslogtreecommitdiff
path: root/src/android/dlt-logd-converter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/dlt-logd-converter.cpp')
-rw-r--r--src/android/dlt-logd-converter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/dlt-logd-converter.cpp b/src/android/dlt-logd-converter.cpp
index 92f4386..d623b9c 100644
--- a/src/android/dlt-logd-converter.cpp
+++ b/src/android/dlt-logd-converter.cpp
@@ -107,7 +107,7 @@ static uint32_t get_timestamp_from_log_msg(struct log_msg *log_msg)
static DltLogLevelType get_log_level_from_log_msg(struct log_msg *log_msg)
{
- android_LogPriority priority = static_cast<android_LogPriority>(log_msg->buf[0]);
+ android_LogPriority priority = static_cast<android_LogPriority>(log_msg->msg()[0]);
switch (priority) {
case ANDROID_LOG_VERBOSE:
return DLT_LOG_VERBOSE;