1From ca91d9fc07943f209988411f2596e4b69828f208 Mon Sep 17 00:00:00 2001 2From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com> 3Date: Sun, 15 Mar 2015 09:02:14 +0000 4Subject: [PATCH] mdadm: Fix build in x32 ABI 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9When try to print time_t values as a long int it causes an error because time_t 10data type in x32 ABI is long long int. 11 12Upstream-Status: Pending 13 14Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> 15--- 16 monitor.c | 5 ++++- 17 1 file changed, 4 insertions(+), 1 deletion(-) 18 19diff --git a/monitor.c b/monitor.c 20index 4acec67..8dcdfd6 100644 21--- a/monitor.c 22+++ b/monitor.c 23@@ -447,9 +447,12 @@ static int read_and_act(struct active_array *a, fd_set *fds) 24 if (FD_ISSET(mdi->bb_fd, fds)) 25 check_for_cleared_bb(a, mdi); 26 } 27- 28 gettimeofday(&tv, NULL); 29+#if defined(__x86_64__) && defined(__ILP32__) 30+ dprintf("(%d): %lld.%06lld state:%s prev:%s action:%s prev: %s start:%llu\n", 31+#else 32 dprintf("(%d): %ld.%06ld state:%s prev:%s action:%s prev: %s start:%llu\n", 33+#endif 34 a->info.container_member, 35 tv.tv_sec, tv.tv_usec, 36 array_states[a->curr_state], 37