Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Rename daemon.c's lognotice() to loginfo()
author
Petr Baudis
<pasky@suse.cz>
Sat, 24 Sep 2005 14:13:03 +0000
(16:13 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 24 Sep 2005 18:20:45 +0000
(11:20 -0700)
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
daemon.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
9048fe1
)
diff --git
a/daemon.c
b/daemon.c
index 5547e6432e208633590dc431bf6a891055ba6bc1..fe46d3e4c67f04441ac618cb6067609ef2d47837 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-59,7
+59,7
@@
void logerror(const char *err, ...)
va_end(params);
}
va_end(params);
}
-void log
notice
(const char *err, ...)
+void log
info
(const char *err, ...)
{
va_list params;
if (!verbose)
{
va_list params;
if (!verbose)
@@
-72,7
+72,7
@@
void lognotice(const char *err, ...)
static int upload(char *dir, int dirlen)
{
static int upload(char *dir, int dirlen)
{
- log
notice
("Request for '%s'", dir);
+ log
info
("Request for '%s'", dir);
if (chdir(dir) < 0) {
logerror("Cannot chdir('%s'): %s", dir, strerror(errno));
return -1;
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;
}
port = sin6_addr->sin6_port;
}
- log
notice
("Connection from %s:%d", addrbuf, port);
+ log
info
("Connection from %s:%d", addrbuf, port);
exit(execute());
}
exit(execute());
}