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 ffca41c..a1ca5d0 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;
 }