summaryrefslogtreecommitdiff
path: root/udev.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 /udev.c
parent3a7798f4714c88021b6ac0cda3e1d818a3fa7a07 (diff)
[PATCH] rework the logging code so that each program logs with the proper name in the syslog.
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/udev.c b/udev.c
index 38b26916c9..b45fb336be 100644
--- a/udev.c
+++ b/udev.c
@@ -38,6 +38,7 @@
/* global variables */
char **main_argv;
char **main_envp;
+unsigned char logname[42];
static void sig_handler(int signum)
{
@@ -174,6 +175,7 @@ int main(int argc, char **argv, char **envp)
main_argv = argv;
main_envp = envp;
+ init_logging("udev");
dbg("version %s", UDEV_VERSION);
return udev_hotplug(argc, argv);