Tizenid service SHOULD use std io because it is executed at sysinit.target 80/86980/1
authorKunhoon Baik <knhoon.baik@samsung.com>
Tue, 6 Sep 2016 00:10:52 +0000 (09:10 +0900)
committerKunhoon Baik <knhoon.baik@samsung.com>
Tue, 6 Sep 2016 00:10:52 +0000 (09:10 +0900)
Change-Id: Ie7da8ed400c234bf0625265f7bd498b5aaac1836

src/tizenid/CMakeLists.txt
src/tizenid/tizenid.c

index 0cf7989..d08812f 100755 (executable)
@@ -9,7 +9,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
 
 INCLUDE(FindPkgConfig)
 pkg_check_modules(tizenid_pkgs REQUIRED
-               dlog
                glib-2.0
                openssl
 )
index c0ca1f8..bc7eda5 100755 (executable)
@@ -21,6 +21,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
+#include <string.h>
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <openssl/evp.h>
 #include <openssl/rand.h>
-#include <dlog.h>
 #include <glib.h>
 
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-
-#define LOG_TAG "TIZENID"
-
-#define _D(fmt, args...)   SLOGD(fmt, ##args)
-#define _E(fmt, args...)   SLOGE(fmt, ##args)
-#define _I(fmt, args...)   SLOGI(fmt, ##args)
+#define _D(fmt, args...)   fprintf(stdout, fmt, ##args)
+#define _E(fmt, args...)   fprintf(stderr, fmt, ##args)
+#define _I(fmt, args...)   fprintf(stdout, fmt, ##args)
 
 #define KEY_MAX 20