chiark / gitweb /
udevd: do not use syslog if --verbose (debugging) is used
[elogind.git] / udevtest.c
index f230b66628d1f473a04776222793c3d2ff9092ec..418d43de14369a999c2423af5d13cad5727accb2 100644 (file)
@@ -44,8 +44,7 @@ void log_message (int priority, const char *format, ...)
        va_start(args, format);
        vprintf(format, args);
        va_end(args);
-       if (format[strlen(format)-1] != '\n')
-               printf("\n");
+       printf("\n");
 }
 #endif
 
@@ -211,6 +210,7 @@ int main(int argc, char *argv[], char *envp[])
                        info("run: '%s'", program);
                }
        }
+       udev_device_cleanup(udev);
 
 exit:
        udev_rules_cleanup(&rules);