summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Son <seungha.son@samsung.com>2020-09-09 14:30:18 +0900
committerSeungha Son <seungha.son@samsung.com>2020-09-09 05:43:38 +0000
commit21d6e61741396b9172f7e08e147f58d879e7bc76 (patch)
tree1bc1a8dff9f5b4b2e4e04acf093711caca2d8c41
parent9003eb047d46ef36e2f19cd42d4a06bd95e974d4 (diff)
downloadttrace-accepted/tizen_5.5_unified.tar.gz
ttrace-accepted/tizen_5.5_unified.tar.bz2
ttrace-accepted/tizen_5.5_unified.zip
- Create a link in documentation - Add '.' at the end of @brief - Add 'void' keyword inside parentheses Change-Id: Ib92a3a3305a792d6c40ab127815766d838579b46 Signed-off-by: Seungha Son <seungha.son@samsung.com>
-rwxr-xr-xinclude/trace.h24
-rwxr-xr-xsrc/trace.c4
2 files changed, 14 insertions, 14 deletions
diff --git a/include/trace.h b/include/trace.h
index fc9974d..11a8f76 100755
--- a/include/trace.h
+++ b/include/trace.h
@@ -50,8 +50,8 @@ typedef enum {
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
* @param[in] name The name of event (optionally containing format specifiers)
- * @exception TRACE_ERROR_NONE Success
- * @exception TRACE_ERROR_IO_ERROR I/O error
+ * @exception #TRACE_ERROR_NONE Success
+ * @exception #TRACE_ERROR_IO_ERROR I/O error
* @see trace_end()
*/
void trace_begin(const char *name, ...);
@@ -62,11 +62,11 @@ void trace_begin(const char *name, ...);
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
* @remarks trace_end() ends the most recently called trace_begin().
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
- * @exception TRACE_ERROR_NONE Success
- * @exception TRACE_ERROR_IO_ERROR I/O error
+ * @exception #TRACE_ERROR_NONE Success
+ * @exception #TRACE_ERROR_IO_ERROR I/O error
* @see trace_begin()
*/
-void trace_end();
+void trace_end(void);
/**
* @brief Writes a trace event to indicate that an asynchronous event has begun.
@@ -75,8 +75,8 @@ void trace_end();
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
* @param[in] cookie An unique identifier for distinguishing simultaneous events
* @param[in] name The name of event (optionally containing format specifiers)
- * @exception TRACE_ERROR_NONE Success
- * @exception TRACE_ERROR_IO_ERROR I/O error
+ * @exception #TRACE_ERROR_NONE Success
+ * @exception #TRACE_ERROR_IO_ERROR I/O error
* @see trace_async_end()
*/
void trace_async_begin(int cookie, const char *name, ...);
@@ -89,21 +89,21 @@ void trace_async_begin(int cookie, const char *name, ...);
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
* @param[in] cookie An unique identifier for distinguishing simultaneous events
* @param[in] name The name of event (optionally containing format specifiers)
- * @exception TRACE_ERROR_NONE Success
- * @exception TRACE_ERROR_IO_ERROR I/O error
+ * @exception #TRACE_ERROR_NONE Success
+ * @exception #TRACE_ERROR_IO_ERROR I/O error
* @see trace_async_begin()
*/
void trace_async_end(int cookie, const char *name, ...);
/**
- * @brief Writes a trace event to track change of integer counter
+ * @brief Writes a trace event to track change of integer counter.
*
* @since_tizen @if MOBILE 2.4 @elseif WEARABLE 2.3.2 @endif
* @remarks The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.
* @param[in] value The counter value
* @param[in] name The name of event (optionally containing format specifiers)
- * @exception TRACE_ERROR_NONE Success
- * @exception TRACE_ERROR_IO_ERROR I/O error
+ * @exception #TRACE_ERROR_NONE Success
+ * @exception #TRACE_ERROR_IO_ERROR I/O error
*/
void trace_update_counter(int value, const char *name, ...);
diff --git a/src/trace.c b/src/trace.c
index a4f8fcd..6ad2c09 100755
--- a/src/trace.c
+++ b/src/trace.c
@@ -42,7 +42,7 @@ void trace_begin(const char *name, ...)
va_end(ap);
}
-void trace_end()
+void trace_end(void)
{
traceEnd(TTRACE_TAG_APP);
}
@@ -86,7 +86,7 @@ void trace_update_counter(int value, const char *name, ...)
void trace_begin(const char *name, ...)
{; }
-void trace_end()
+void trace_end(void)
{; }
void trace_async_begin(int cookie, const char *name, ...)