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 14:30:18 +0900
commit528dc2819c223880b86aa3022be890aab669077c (patch)
tree91e3595438cfd14ef022a1fe06aa301cc1dde323
parent18c895e24556fe2b44b4180798a1019733c4bf29 (diff)
downloadttrace-528dc2819c223880b86aa3022be890aab669077c.tar.gz
ttrace-528dc2819c223880b86aa3022be890aab669077c.tar.bz2
ttrace-528dc2819c223880b86aa3022be890aab669077c.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, ...)