diff options
author | joon.c.baek <joon.c.baek@samsung.com> | 2015-05-22 13:53:44 +0900 |
---|---|---|
committer | joon.c.baek <joon.c.baek@samsung.com> | 2015-05-22 14:05:24 +0900 |
commit | 3d1504ce27c60457a2f8026be484a364a5f090cd (patch) | |
tree | d6e94ef4d9a1ff1f6fdf3cce257fcc65d038873c | |
parent | 570eeb2c5181776c56e6a070a087c3bab1b45f92 (diff) | |
download | ttrace-3d1504ce27c60457a2f8026be484a364a5f090cd.tar.gz ttrace-3d1504ce27c60457a2f8026be484a364a5f090cd.tar.bz2 ttrace-3d1504ce27c60457a2f8026be484a364a5f090cd.zip |
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 <joon.c.baek@samsung.com>
-rw-r--r-- | include/trace.h | 11 | ||||
-rw-r--r-- | src/ttrace.c | 2 |
2 files changed, 1 insertions, 12 deletions
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 <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 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 <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) { |