]> err.no Git - systemd/commitdiff
log: print a test line whever we manage to open a log device
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 22:58:03 +0000 (00:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Apr 2010 22:58:03 +0000 (00:58 +0200)
log.c

diff --git a/log.c b/log.c
index ffca41c2702e45c4e4fe6ddd0561011d8af48bed..a1ca5d02272176c14e190fb9401c8d5c2f99ac5a 100644 (file)
--- 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;
 }