diff mbox

[PATCHv6,4/9] api: odp_init.h: updated return descriptions

Message ID 1423084051-12962-5-git-send-email-ola.liljedahl@linaro.org
State Accepted
Commit ac16fa3c91de95fcf49cfb76c0afd17f825f8bc6
Headers show

Commit Message

Ola Liljedahl Feb. 4, 2015, 9:07 p.m. UTC
Signed-off-by: Ola Liljedahl <ola.liljedahl@linaro.org>
---
(This document/code contribution attached is provided under the terms of
agreement LES-LTM-21309)

 include/odp/api/init.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
diff mbox

Patch

diff --git a/include/odp/api/init.h b/include/odp/api/init.h
index 7353d0b..0ce82f8 100644
--- a/include/odp/api/init.h
+++ b/include/odp/api/init.h
@@ -67,8 +67,8 @@  typedef enum odp_log_level {
  * @param[in] level   Log level
  * @param[in] fmt     printf-style message format
  *
- * @return The number of characters logged if succeeded. Otherwise returns
- *         a negative number.
+ * @return The number of characters logged on success
+ * @retval <0 on failure
  */
 int odp_override_log(odp_log_level_e level, const char *fmt, ...);
 
@@ -135,8 +135,8 @@  typedef struct odp_platform_init_t {
  * @param[in] platform_params Those parameters that are passed without
  * interpretation by the ODP API to the implementation.
  *
- * @retval 0 if successful
- * @retval -1 on failure
+ * @retval 0 on success
+ * @retval <0 on failure
  */
 int odp_init_global(odp_init_t *params, odp_platform_init_t *platform_params);
 
@@ -160,8 +160,8 @@  int odp_init_global(odp_init_t *params, odp_platform_init_t *platform_params);
  * @sa odp_init_global()
  * @sa odp_term_local() which must have been called prior to this.
  *
- * @retval 0 if successful
- * @retval -1 on failure
+ * @retval 0 on success
+ * @retval <0 on failure
  */
 int odp_term_global(void);
 
@@ -174,8 +174,8 @@  int odp_term_global(void);
  * @sa odp_term_local()
  * @sa odp_init_global() which must have been called prior to this.
  *
- * @retval 0 if successful
- * @retval -1 on failure
+ * @retval 0 on success
+ * @retval <0 on failure
  */
 int odp_init_local(void);
 
@@ -197,9 +197,9 @@  int odp_init_local(void);
  * @warning The unwinding of HW resources to allow them to be re used without reseting
  * the device is a complex task that the application is expected to coordinate.
  *
- * @retval 1 if successful and more ODP thread exists
- * @retval 0 if successful and it was the last ODP thread
- * @retval -1 on failure
+ * @retval 1 on success and more ODP threads exist
+ * @retval 0 on success and it was the last ODP thread
+ * @retval <0 on failure
  */
 int odp_term_local(void);