From: Lennart Poettering Date: Wed, 7 Apr 2010 22:58:03 +0000 (+0200) Subject: log: print a test line whever we manage to open a log device X-Git-Tag: 0.git+20100605+dfd8ee-1~208 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dae83f9ff5303082f150492d9fa2d6bff391480;p=systemd log: print a test line whever we manage to open a log device --- diff --git a/log.c b/log.c index ffca41c2..a1ca5d02 100644 --- a/log.c +++ b/log.c @@ -61,6 +61,8 @@ int log_open_kmsg(void) { if ((kmsg_fd = open("/dev/kmsg", O_WRONLY|O_NOCTTY|O_CLOEXEC)) < 0) return -errno; + log_info("Succesfully opened /dev/kmsg for logging."); + return 0; } @@ -110,6 +112,8 @@ int log_open_syslog(void) { return -errno; } + log_info("Succesfully opened syslog for logging."); + return 0; }