diff --git a/drivers/syslog/syslog.h b/drivers/syslog/syslog.h index 3ebb480f00..67aedbb9f1 100644 --- a/drivers/syslog/syslog.h +++ b/drivers/syslog/syslog.h @@ -61,10 +61,10 @@ extern "C" /* The default SYSLOG channel */ struct syslog_channel_s; /* Forward reference */ -EXTERN const struct syslog_channel_s g_default_syslog_channel; +EXTERN const struct syslog_channel_s g_default_channel; /* This is the current syslog channel in use. It initially points to - * g_default_syslog_channel. + * g_default_channel. */ EXTERN FAR const struct syslog_channel_s *g_syslog_channel; diff --git a/drivers/syslog/syslog_filechannel.c b/drivers/syslog/syslog_filechannel.c index 3f2f7d7df1..efd5e541b3 100644 --- a/drivers/syslog/syslog_filechannel.c +++ b/drivers/syslog/syslog_filechannel.c @@ -149,7 +149,7 @@ int syslog_file_channel(FAR const char *devpath) sched_lock(); saved_channel = g_syslog_channel; - ret = syslog_channel(&g_default_syslog_channel); + ret = syslog_channel(&g_default_channel); if (ret < 0) { goto errout_with_lock;