From: Damir Tomic Date: Sat, 4 Jul 2015 10:19:42 +0000 (+0200) Subject: fixes to unsigned printing in timespecops.c and timevalops.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc84f39fd8b7de7bc85edbe3c9067b7dde49c708;p=thirdparty%2Fntp.git fixes to unsigned printing in timespecops.c and timevalops.c bk: 5597b33eRguTJwteHW3HUhM1hqm7ng --- 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;