You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/29 13:08:33 UTC

[incubator-nuttx] branch master updated: syslog: correct to #ifdef CONFIG_SYSLOG_RPMSG to call syslog_rpmsg_init

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new bd924bf  syslog: correct to #ifdef CONFIG_SYSLOG_RPMSG to call syslog_rpmsg_init
bd924bf is described below

commit bd924bf7fb0febc2991b47335f605e565f398c7c
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Wed Apr 29 18:10:10 2020 +0800

    syslog: correct to #ifdef CONFIG_SYSLOG_RPMSG to call syslog_rpmsg_init
    
    Same as syslog/Make.defs to use #ifdef CONFIG_SYSLOG_RPMSG to build syslog_rpmsg.c
    in which syslog_rpmsg_init defined.
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 drivers/syslog/syslog_initialize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/syslog/syslog_initialize.c b/drivers/syslog/syslog_initialize.c
index 146602f..409c92b 100644
--- a/drivers/syslog/syslog_initialize.c
+++ b/drivers/syslog/syslog_initialize.c
@@ -102,7 +102,7 @@ int syslog_initialize(void)
   syslog_register();
 #endif
 
-#ifdef CONFIG_SYSLOG_CHARDEV
+#ifdef CONFIG_SYSLOG_RPMSG
   syslog_rpmsg_init();
 #endif