projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e53ae03
)
log: print a test line whever we manage to open a log device
author
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Apr 2010 22:58:03 +0000
(
00:58
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Apr 2010 22:58:03 +0000
(
00:58
+0200)
log.c
patch
|
blob
|
history
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;
}