From 95a6f4c8acafe7031087667aa556a50a6a091c93 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Mon, 2 Feb 2004 08:19:41 -0800 Subject: [PATCH] rework the logging code so that each program logs with the proper name in the syslog. --- udevsend.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'udevsend.c') diff --git a/udevsend.c b/udevsend.c index 0ddc6839de..6af9df7704 100644 --- a/udevsend.c +++ b/udevsend.c @@ -40,6 +40,7 @@ #include "udevd.h" #include "logging.h" +unsigned char logname[42]; static inline char *get_action(void) { @@ -126,6 +127,8 @@ int main(int argc, char* argv[]) int sock; struct sockaddr_un saddr; + init_logging("udevsend"); + subsystem = argv[1]; if (subsystem == NULL) { dbg("no subsystem"); -- cgit v1.2.3-54-g00ecf