chiark / gitweb /
udevd: add timestamp to --debug output
[elogind.git] / libudev / libudev-util-private.c
index 5f5f4c1d89f82e823c203500fc5cea44fcdc5dd6..f7daa9460beabeca74c08a80c548f1b5b129365a 100644 (file)
@@ -249,6 +249,8 @@ int util_run_program(struct udev *udev, const char *command, char **envp,
        int i;
        int err = 0;
 
+       info(udev, "'%s' started\n", command);
+
        /* build argv from command */
        util_strscpy(arg, sizeof(arg), command);
        i = 0;
@@ -273,7 +275,6 @@ int util_run_program(struct udev *udev, const char *command, char **envp,
                argv[0] = arg;
                argv[1] = NULL;
        }
-       info(udev, "'%s'\n", command);
 
        /* prepare pipes from child to parent */
        if (result != NULL || udev_get_log_priority(udev) >= LOG_INFO) {