diff --git a/fs/syslog/Make.defs b/fs/syslog/Make.defs index a6e92b8bf6..3ed460745e 100644 --- a/fs/syslog/Make.defs +++ b/fs/syslog/Make.defs @@ -35,7 +35,7 @@ # Add the internal C files to the build -CSRCS += fs_vsyslog.c fs_lowsyslog.c fs_setlogmask.c +CSRCS += fs_syslog.c fs_lowsyslog.c fs_setlogmask.c ifeq ($(CONFIG_SYSLOG),y) CSRCS += fs_syslogstream.c diff --git a/fs/syslog/fs_vsyslog.c b/fs/syslog/fs_syslog.c similarity index 97% rename from fs/syslog/fs_vsyslog.c rename to fs/syslog/fs_syslog.c index 0f4d1844ee..cb5e962563 100644 --- a/fs/syslog/fs_vsyslog.c +++ b/fs/syslog/fs_syslog.c @@ -1,5 +1,5 @@ /**************************************************************************** - * libc/syslog/fs_vsyslog.c + * libc/syslog/fs_syslog.c * * Copyright (C) 2007-2009, 2011-2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -151,18 +151,18 @@ int vsyslog(int priority, FAR const char *fmt, va_list ap) } /**************************************************************************** - * Name: lowsyslog + * Name: syslog ****************************************************************************/ -int lowsyslog(int priority, FAR const char *fmt, ...) +int syslog(int priority, FAR const char *fmt, ...) { va_list ap; int ret; - /* Let lowvsyslog do the work */ + /* Let vsyslog do the work */ va_start(ap, fmt); - ret = lowvsyslog(priority, fmt, ap); + ret = vsyslog(priority, fmt, ap); va_end(ap); return ret;