diff options
author | greg@kroah.com <greg@kroah.com> | 2004-02-02 08:19:41 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:20 -0700 |
commit | 95a6f4c8acafe7031087667aa556a50a6a091c93 (patch) | |
tree | 8f7775e25d9315f20c0cc44cac362976e96627d2 /udev.c | |
parent | 3a7798f4714c88021b6ac0cda3e1d818a3fa7a07 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |