chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
log: print a test line whever we manage to open a log device
[elogind.git]
/
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;
}