diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-25 23:52:03 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-25 23:58:29 +0100 |
commit | 4bccbfa967d756b8c84a62ea4752e936d8545a73 (patch) | |
tree | dcb96ec1bae2005b3840493af73f12002f74d97f /initd | |
parent | 7676df3226da5391c2dfda2ed29a40500e04e15b (diff) | |
download | unitd-4bccbfa967d756b8c84a62ea4752e936d8545a73.tar unitd-4bccbfa967d756b8c84a62ea4752e936d8545a73.zip |
Convert log calls to ulog() api
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'initd')
-rw-r--r-- | initd/early.c | 1 | ||||
-rw-r--r-- | initd/init.c | 2 | ||||
-rw-r--r-- | initd/mkdev.c | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/initd/early.c b/initd/early.c index beb7b69..5ee49ee 100644 --- a/initd/early.c +++ b/initd/early.c @@ -21,7 +21,6 @@ #include <unistd.h> #include <stdlib.h> -#include "../log.h" #include "init.h" static void diff --git a/initd/init.c b/initd/init.c index 0d201bc..9818c4f 100644 --- a/initd/init.c +++ b/initd/init.c @@ -72,6 +72,8 @@ main(int argc, char **argv) { pid_t pid; + ulog_open(ULOG_KMSG, LOG_DAEMON, "init"); + sigaction(SIGTERM, &sa_shutdown, NULL); sigaction(SIGUSR1, &sa_shutdown, NULL); sigaction(SIGUSR2, &sa_shutdown, NULL); diff --git a/initd/mkdev.c b/initd/mkdev.c index 3471461..a9a2320 100644 --- a/initd/mkdev.c +++ b/initd/mkdev.c @@ -28,8 +28,6 @@ #include "init.h" -#include "../log.h" - static char **patterns; static int n_patterns; static char buf[PATH_MAX]; |