From 77e5115e233b10bfbd7e04a19850e505251fd662 Mon Sep 17 00:00:00 2001 From: Max Kriegleder Date: Wed, 19 Oct 2016 08:27:20 -0600 Subject: [PATCH] syslog: Fixes required for file syslog output --- drivers/syslog/syslog.h | 4 ++-- drivers/syslog/syslog_filechannel.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;