mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
log: print a test line whever we manage to open a log device
This commit is contained in:
parent
e53ae031a0
commit
0dae83f9ff
4
log.c
4
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user