summaryrefslogtreecommitdiffstats
path: root/procd.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-02-25 23:52:03 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-02-25 23:58:29 +0100
commit4bccbfa967d756b8c84a62ea4752e936d8545a73 (patch)
treedcb96ec1bae2005b3840493af73f12002f74d97f /procd.c
parent7676df3226da5391c2dfda2ed29a40500e04e15b (diff)
downloadunitd-4bccbfa967d756b8c84a62ea4752e936d8545a73.tar
unitd-4bccbfa967d756b8c84a62ea4752e936d8545a73.zip
Convert log calls to ulog() api
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'procd.c')
-rw-r--r--procd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/procd.c b/procd.c
index 7528e60..e41d98a 100644
--- a/procd.c
+++ b/procd.c
@@ -43,6 +43,8 @@ int main(int argc, char **argv)
int ch;
char *dbglvl = getenv("DBGLVL");
+ ulog_open(ULOG_KMSG, LOG_DAEMON, "procd");
+
if (dbglvl) {
debug = atoi(dbglvl);
unsetenv("DBGLVL");