summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-08 00:58:03 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-08 00:58:03 +0200
commit0dae83f9ff5303082f150492d9fa2d6bff391480 (patch)
treee065381725415f832b736ba79655b464c007c3e3 /log.c
parente53ae031a0f98f2af37cf3639b29cfd94dc408de (diff)
log: print a test line whever we manage to open a log device
Diffstat (limited to 'log.c')
-rw-r--r--log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/log.c b/log.c
index ffca41c270..a1ca5d0227 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;
}