chiark / gitweb /
udevd: debug - put timestamp in []
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 30 Jul 2011 21:16:43 +0000 (23:16 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 30 Jul 2011 21:16:43 +0000 (23:16 +0200)
udev/udevd.c

index 968b416..2fa2a6a 100644 (file)
@@ -59,7 +59,7 @@ static void log_fn(struct udev *udev, int priority,
 
                vsnprintf(buf, sizeof(buf), format, args);
                clock_gettime(CLOCK_MONOTONIC, &ts);
-               fprintf(stderr, "%llu.%06u [%u] %s: %s",
+               fprintf(stderr, "[%llu.%06u] [%u] %s: %s",
                        (unsigned long long) ts.tv_sec, (unsigned int) ts.tv_nsec/1000,
                        (int) getpid(), fn, buf);
        } else {