void-packages/srcpkgs/mdadm/patches/time64.patch

17 lines
555 B
Diff
Raw Normal View History

diff --git monitor.c monitor.c
index 81537ed..08027ac 100644
--- monitor.c
+++ monitor.c
@@ -447,9 +447,9 @@ static int read_and_act(struct active_array *a, fd_set *fds)
2021-02-13 12:04:26 +00:00
}
gettimeofday(&tv, NULL);
- dprintf("(%d): %ld.%06ld state:%s prev:%s action:%s prev: %s start:%llu\n",
+ dprintf("(%d): %lld.%06ld state:%s prev:%s action:%s prev: %s start:%llu\n",
2021-02-13 12:04:26 +00:00
a->info.container_member,
- tv.tv_sec, tv.tv_usec,
+ (long long)tv.tv_sec, (long)tv.tv_usec,
2021-02-13 12:04:26 +00:00
array_states[a->curr_state],
array_states[a->prev_state],
sync_actions[a->curr_action],