You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/19 18:39:30 UTC
[incubator-nuttx-apps] 01/02: system/cle: Fix cle application build
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 08c29110a616fb795278a7696e2470283228759a
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Feb 18 19:50:32 2021 -0300
system/cle: Fix cle application build
---
system/cle/cle.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/system/cle/cle.c b/system/cle/cle.c
index d5f43f2..97f9387 100644
--- a/system/cle/cle.c
+++ b/system/cle/cle.c
@@ -168,7 +168,7 @@ struct cle_s
****************************************************************************/
#if CONFIG_SYSTEM_CLE_DEBUGLEVEL > 0
-static int cle_debug(FAR const char *fmt, ...);
+static void cle_debug(FAR const char *fmt, ...);
#endif
/* Low-level display and data entry functions */
@@ -248,17 +248,15 @@ static const char g_setcolor[] = VT100_FMT_FORE_COLOR;
****************************************************************************/
#if CONFIG_SYSTEM_CLE_DEBUGLEVEL > 0
-static int cle_debug(FAR const char *fmt, ...)
+static void cle_debug(FAR const char *fmt, ...)
{
va_list ap;
- int ret;
/* Let vsyslog do the real work */
va_start(ap, fmt);
- ret = vsyslog(LOG_DEBUG, fmt, ap);
+ vsyslog(LOG_DEBUG, fmt, ap);
va_end(ap);
- return ret;
}
#endif