summaryrefslogtreecommitdiff
path: root/udevsend.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-02 08:19:41 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:20 -0700
commit95a6f4c8acafe7031087667aa556a50a6a091c93 (patch)
tree8f7775e25d9315f20c0cc44cac362976e96627d2 /udevsend.c
parent3a7798f4714c88021b6ac0cda3e1d818a3fa7a07 (diff)
[PATCH] rework the logging code so that each program logs with the proper name in the syslog.
Diffstat (limited to 'udevsend.c')
-rw-r--r--udevsend.c3
1 files changed, 3 insertions, 0 deletions
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");