dump_systemstate: modify checking dlog backend to adapt newly patched dlog 22/56722/1 accepted/tizen/ivi/20160218.023959 accepted/tizen/mobile/20160112.224410 accepted/tizen/tv/20160112.224425 accepted/tizen/wearable/20160112.224446 submit/tizen/20160112.094446 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000003
authorKichan Kwon <k_c.kwon@samsung.com>
Tue, 12 Jan 2016 09:11:35 +0000 (18:11 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 12 Jan 2016 09:16:19 +0000 (18:16 +0900)
Change-Id: Ib2e615ed871cfc0b3578a7d3fc8523b45b953699
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/dump_systemstate/dump_systemstate.c

index 0de0166..5206bf0 100644 (file)
@@ -36,7 +36,7 @@
 #include "shared/util.h"
 #include "shared/log.h"
 
-#define DLOG_BACKEND_PATH "/etc/dlog_backend"
+#define DLOG_BACKEND_PATH "/run/dloginit.conf"
 
 #define FILE_PERM (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH)
 static struct dump_item {
@@ -98,7 +98,7 @@ static bool dlogutil_supported(void)
 
        fclose(fp);
 
-       if (!strncmp(buf, "journal", 7))
+       if (!strncmp(buf, "LOG_TYPE=journal", 16))
                return false;
 
        return true;