chiark / gitweb /
[PATCH] rework the logging code so that each program logs with the proper name in...
[elogind.git] / udevsend.c
index 0ddc6839def3d63c2fbc74201dbbfe4395b9fb0c..6af9df77040a386c39a93ddf1245235efd517eda 100644 (file)
@@ -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");