[PATCH 4/4] Rename daemon.c's lognotice() to loginfo()
- From
Petr Baudis <pasky@suse.cz>
- Date
- Sep 24, 2005, 14:13 UTC
- Message-ID
- <20050924141303.8423.54292.stgit@machine.or.cz>
- In-Reply-To
- <20050924141254.8423.80265.stgit@machine.or.cz>
The syslog code logs with severity LOG_INFO in the loginfo() function, so make things less confusing.
Signed-off-by: Petr Baudis <pasky@suse.cz> ---
daemon.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/daemon.c b/daemon.c --- a/daemon.c +++ b/daemon.c @@ -59,7 +59,7 @@ void logerror(const char *err, ...) va_end(params); } -void lognotice(const char *err, ...) +void loginfo(const char *err, ...) { va_list params; if (!verbose) @@ -72,7 +72,7 @@ void lognotice(const char *err, ...) static int upload(char *dir, int dirlen) { - lognotice("Request for '%s'", dir); + loginfo("Request for '%s'", dir); if (chdir(dir) < 0) { logerror("Cannot chdir('%s'): %s", dir, strerror(errno)); return -1; @@ -284,7 +284,7 @@ static void handle(int incoming, struct port = sin6_addr->sin6_port; } - lognotice("Connection from %s:%d", addrbuf, port); + loginfo("Connection from %s:%d", addrbuf, port); exit(execute()); }