From: joon.c.baek Date: Fri, 22 May 2015 04:53:44 +0000 (+0900) Subject: ttrace: Resolve build break X-Git-Tag: accepted/tizen/common/20150602.115903~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F39766%2F1;p=tools%2Fttrace.git ttrace: Resolve build break 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 --- diff --git a/include/trace.h b/include/trace.h index 3677114..5a60ce1 100644 --- a/include/trace.h +++ b/include/trace.h @@ -23,8 +23,6 @@ #ifndef _CDBG_TIZEN_TRACE_H_ #define _CDBG_TIZEN_TRACE_H_ -#include - #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 diff --git a/src/ttrace.c b/src/ttrace.c index a6533f6..5ff7287 100644 --- a/src/ttrace.c +++ b/src/ttrace.c @@ -40,6 +40,7 @@ #include #include +#include #include #include #include @@ -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) {