Skip to contentSkip to conversation

main - debug: keep microseconds aligned

PATCH Zdenek Kabelac 1 participant 1 message Mar 15, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6e9ccf7b6f58cd3e31a79c35d3a312560809e85a
Commit:        6e9ccf7b6f58cd3e31a79c35d3a312560809e85a
Parent:        bc1bc4cffc2b5faa113b5c232aa5fc2faae8771a
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Mar 12 22:39:42 2021 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Mar 15 11:13:24 2021 +0100

debug: keep microseconds aligned

---
 lib/log/log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/log/log.c +1 -1
index cd676f2ae..53ff5b156 100644
@@ -472,7 +472,7 @@ static void _set_time_prefix(char *prefix, int buflen)
 	if (!len)
 		goto fail;
 
-	len = dm_snprintf(prefix + len, buflen - len, ".%ld ", ts.tv_nsec/1000);
+	len = dm_snprintf(prefix + len, buflen - len, ".%06ld ", ts.tv_nsec/1000);
 	if (len < 0)
 		goto fail;