summaryrefslogtreecommitdiffhomepage
path: root/sysklogd/logger.c
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-03-12 22:51:50 +0000
committerMark Whitley <markw@lineo.com>2001-03-12 22:51:50 +0000
commit6317c4baf79c25d7f77897b064eb4f0b7d9f070e (patch)
tree5fc8fe65a4903f6224925a72b53a4f46e2b0b1d3 /sysklogd/logger.c
parent4987bbf97924044c88007c45ee2674d97b93ad92 (diff)
Applied patch from Gennady Feldman to split up syslogd.c into syslogd and
klogd (as it should be).
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r--sysklogd/logger.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 1218d8d2e..b8aae3d28 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -148,9 +148,10 @@ extern int logger_main(int argc, char **argv)
message[strlen(message)-1] = '\0';
}
- openlog(name, option, (pri | LOG_FACMASK));
+ /*openlog(name, option, (pri | LOG_FACMASK));
syslog(pri, "%s", message);
- closelog();
+ closelog();*/
+ syslog_msg_with_name(name,(pri | LOG_FACMASK),pri,message);
return EXIT_SUCCESS;
}