Fix minor issues with log entry parsing 11/195611/1
authorMichal Bloch <m.bloch@samsung.com>
Fri, 14 Dec 2018 18:29:14 +0000 (19:29 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Fri, 14 Dec 2018 18:29:14 +0000 (19:29 +0100)
Change-Id: I2a566647cdde20aa7168d816afd1c78146567f4f
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/shared/queued_entry.c

index fb7def7..4bc851a 100644 (file)
@@ -217,7 +217,7 @@ void parse_androidlogger_message(struct android_logger_entry *ale, struct logger
         * to at least have some ordering information
         * if the monotonic timestamp is missing */
        le->sec_sent_mono = ale->sec_sent;
-       le->nsec_sent_mono = ale->sec_sent;
+       le->nsec_sent_mono = ale->nsec_sent;
 
 #ifdef USE_ANDROID_MONOTONIC
        /* there may be android_logger_footer at the end of payload, right after log message,
@@ -450,8 +450,8 @@ enum sorting_order get_order_from_config(const struct log_config *conf)
                        ret = SORT_SENT_REAL;
                else if (!strcmp(sort_str, "recv_real"))
                        ret = SORT_RECV_REAL;
-               else if (!strcmp(sort_str, "recv_mono"))
-                       ret = SORT_RECV_MONO;
+               else if (!strcmp(sort_str, "sent_mono"))
+                       ret = SORT_SENT_MONO;
        }
 
        return ret;