summaryrefslogtreecommitdiff
path: root/udevinfo.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 /udevinfo.c
parent3a7798f4714c88021b6ac0cda3e1d818a3fa7a07 (diff)
[PATCH] rework the logging code so that each program logs with the proper name in the syslog.
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udevinfo.c b/udevinfo.c
index 4d28755b2f..71a9a6d93e 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -38,6 +38,7 @@
char **main_argv;
int main_argc;
+unsigned char logname[42];
static int print_all_attributes(const char *path)
{
@@ -412,6 +413,8 @@ int main(int argc, char *argv[], char *envp[])
main_argv = argv;
main_argc = argc;
+ init_logging("udevinfo");
+
/* initialize our configuration */
udev_init_config();