提交 da38641d 编写于 作者: P Petr Baudis 提交者: Junio C Hamano

[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: NPetr Baudis <pasky@suse.cz>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 9048fe1c
......@@ -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());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册