From ce72bbf7e0d426f5de25bbd67b3e4e9b6e511de7 Mon Sep 17 00:00:00 2001 From: Damir Tomic Date: Sat, 4 Jul 2015 12:19:42 +0200 Subject: [PATCH] fixes to unsigned printing in timespecops.c and timevalops.c bk: 5597b33eRguTJwteHW3HUhM1hqm7ng --- tests/libntp/timespecops.c | 2 +- tests/libntp/timevalops.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libntp/timespecops.c b/tests/libntp/timespecops.c index 063db1ab7..ac7a45d6c 100644 --- a/tests/libntp/timespecops.c +++ b/tests/libntp/timespecops.c @@ -89,7 +89,7 @@ bool AssertTimespecClose(const struct timespec m,const struct timespec n, const return TRUE; else { - printf("m_expr which is %ld.%ld \nand\nn_expr which is %ld.%ld\nare not close; diff=%ld.%ldnsec\n",m.tv_sec,m.tv_nsec,n.tv_sec,n.tv_nsec,diff.tv_sec,diff.tv_nsec); + printf("m_expr which is %ld.%lu \nand\nn_expr which is %ld.%lu\nare not close; diff=%ld.%lunsec\n",m.tv_sec,m.tv_nsec,n.tv_sec,n.tv_nsec,diff.tv_sec,diff.tv_nsec); return FALSE; } } diff --git a/tests/libntp/timevalops.c b/tests/libntp/timevalops.c index a969af098..9d832673d 100644 --- a/tests/libntp/timevalops.c +++ b/tests/libntp/timevalops.c @@ -63,7 +63,7 @@ bool AssertTimevalClose(const struct timeval m, const struct timeval n, const st else { - printf("m_expr which is %ld.%ld \nand\nn_expr which is %ld.%ld\nare not close; diff=%ld.%ldusec\n",m.tv_sec,m.tv_usec,n.tv_sec,n.tv_usec,diff.tv_sec,diff.tv_usec); + 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; -- 2.47.3