ttrace: Resolve build break 66/39766/1
authorjoon.c.baek <joon.c.baek@samsung.com>
Fri, 22 May 2015 04:53:44 +0000 (13:53 +0900)
committerjoon.c.baek <joon.c.baek@samsung.com>
Fri, 22 May 2015 05:05:24 +0000 (14:05 +0900)
ttrace was migrated from Tizen 2.4 repository.
Build environments is not suitable with ttrace.
Remove including tizen2.4 header and UTC related codes.

This patch only support to build armv7l arch.
Need more work to build other architectures.
(arch64, x86, x86_64, etc,.)

Change-Id: I6d98b5c0e4c006cf99c4a8341c1cf91eed9b7aa1
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
include/trace.h
src/ttrace.c

index 3677114..5a60ce1 100644 (file)
@@ -23,8 +23,6 @@
 #ifndef _CDBG_TIZEN_TRACE_H_
 #define _CDBG_TIZEN_TRACE_H_
 
-#include <tizen.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif /* __cplusplus */
@@ -36,15 +34,6 @@ extern "C" {
  */
 
 /**
-* @brief Enumeration for Trace Error.
-* @since_tizen 2.4
-*/
-typedef enum {
-       TRACE_ERROR_NONE = TIZEN_ERROR_NONE,    /**< Successful */
-       TRACE_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR     /**< I/O error */
-} trace_error_e;
-
-/**
  * @brief Writes a trace event to indicate that a synchronous event has begun.
  *
  * @since_tizen 2.4
index a6533f6..5ff7287 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <fcntl.h>
 #include <unistd.h>
+#include <errno.h>
 #include <sys/types.h>
 #include <sys/syscall.h>
 #include <sys/ipc.h>
@@ -67,7 +68,6 @@ static unsigned int traceInit() {
                if(errno == ENOENT){
                        g_trace_handle_fd = TRACE_FILE_NOT_EXIST;
                } 
-               set_last_result(TRACE_ERROR_IO_ERROR);
                return 0;
        } 
        if(cur_enabled_tag ==  NULL) {