mdadm: fix printf format for time64
This commit is contained in:
parent
e32c77fdca
commit
67c4ae2ab1
20
srcpkgs/mdadm/patches/time64.patch
Normal file
20
srcpkgs/mdadm/patches/time64.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- monitor.c 2018-10-01 18:26:06.000000000 +0000
|
||||
+++ monitor.c 2020-01-22 19:51:39.575877908 +0000
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "mdadm.h"
|
||||
#include "mdmon.h"
|
||||
+#include <inttypes.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/select.h>
|
||||
#include <signal.h>
|
||||
@@ -447,7 +448,7 @@
|
||||
}
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
- dprintf("(%d): %ld.%06ld state:%s prev:%s action:%s prev: %s start:%llu\n",
|
||||
+ dprintf("(%d): %"PRId64".%06"PRId64" state:%s prev:%s action:%s prev: %s start:%llu\n",
|
||||
a->info.container_member,
|
||||
tv.tv_sec, tv.tv_usec,
|
||||
array_states[a->curr_state],
|
||||
|
Loading…
x
Reference in New Issue
Block a user