KMSG: conform to the new format 93/80893/5 accepted/tizen/ivi/20160804.080943 accepted/tizen/mobile/20160804.080951 accepted/tizen/tv/20160804.080941 accepted/tizen/wearable/20160804.080919 submit/tizen/20160803.053117
authorMichal Bloch <m.bloch@samsung.com>
Wed, 20 Jul 2016 13:50:43 +0000 (15:50 +0200)
committerKichan Kwon <k_c.kwon@samsung.com>
Wed, 27 Jul 2016 05:41:50 +0000 (14:41 +0900)
 - To use escape sequence at dlog, log format stored in the kernel buffer is modified
 - Notice : to apply this patch, you MUST use kernel with applied patch "kmsg: allow binary characters"

Change-Id: Ic73e6da895404a7b5bcf520bf13737f10bcfc939
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/shared/queued_entry.c

index de0d08e..6aac71c 100644 (file)
@@ -117,12 +117,11 @@ static int parse_entry_raw(struct logger_entry *entry)
        *entry->msg_begin = '\0';
        entry->msg_begin++;
 
-       entry->msg_end = strchr(entry->msg_begin, '\n');
+       entry->msg_end = strchr(entry->msg_begin, '\0');
        if (entry->msg_end == NULL)
                return -1;
-       *entry->msg_end = '\0';
 
-       cptr = parse_dict_val(entry->msg_end+1, &entry->pid_begin);
+       cptr = parse_dict_val(entry->msg_end+2, &entry->pid_begin);
        if (cptr == NULL)
                return -1;