From: Petr Baudis Date: Sat, 24 Sep 2005 14:13:03 +0000 (+0200) Subject: [PATCH] Rename daemon.c's lognotice() to loginfo() X-Git-Tag: v0.99.8~69 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=da38641d7c1bd64f86bdd9e1f66fbff1cbb4f3b6;p=git.git [PATCH] Rename daemon.c's lognotice() to loginfo() The syslog code logs with severity LOG_INFO in the loginfo() function, so make things less confusing. Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- diff --git a/daemon.c b/daemon.c index 5547e6432..fe46d3e4c 100644 --- 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 sockaddr *addr, int addrlen) port = sin6_addr->sin6_port; } - lognotice("Connection from %s:%d", addrbuf, port); + loginfo("Connection from %s:%d", addrbuf, port); exit(execute()); }