summaryrefslogtreecommitdiff
path: root/tests/libntp/timevalops.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libntp/timevalops.c')
-rw-r--r--tests/libntp/timevalops.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/libntp/timevalops.c b/tests/libntp/timevalops.c
index 20d589299228b..0c498ca396b6a 100644
--- a/tests/libntp/timevalops.c
+++ b/tests/libntp/timevalops.c
@@ -116,13 +116,13 @@ AssertTimevalClose(const struct timeval m, const struct timeval n, const struct
diff = abs_tval(sub_tval(m, n));
if (cmp_tval(limit, diff) >= 0)
return TRUE;
- else
- {
- printf("m_expr which is %ld.%lu \nand\nn_expr which is %ld.%lu\nare not close; diff=%ld.%luusec\n", m.tv_sec, m.tv_usec, n.tv_sec, n.tv_usec, diff.tv_sec, diff.tv_usec);
- //I don't have variables m_expr and n_expr in unity, those are command line arguments which only getst has!!!
- return FALSE;
- }
+ printf("m_expr which is %lld.%06lu \nand\n"
+ "n_expr which is %lld.%06lu\nare not close; diff=%lld.%06luusec\n",
+ (long long)m.tv_sec, m.tv_usec,
+ (long long)n.tv_sec, n.tv_usec,
+ (long long)diff.tv_sec, diff.tv_usec);
+ return FALSE;
}
@@ -142,8 +142,8 @@ AssertFpClose(const l_fp m, const l_fp n, const l_fp limit)
return TRUE;
}
else {
- printf("m_expr which is %s \nand\nn_expr which is %s\nare not close; diff=%susec\n", lfptoa(&m, 10), lfptoa(&n, 10), lfptoa(&diff, 10));
- //printf("m_expr which is %d.%d \nand\nn_expr which is %d.%d\nare not close; diff=%d.%dusec\n", m.l_uf, m.Ul_i, n.l_uf, n.Ul_i, diff.l_uf, diff.Ul_i);
+ printf("m_expr which is %s \nand\nn_expr which is %s\nare not close; diff=%susec\n",
+ lfptoa(&m, 10), lfptoa(&n, 10), lfptoa(&diff, 10));
return FALSE;
}
}