]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
fixes to unsigned printing in timespecops.c and timevalops.c
authorDamir Tomic <viperus@ntp.org>
Sat, 4 Jul 2015 10:19:42 +0000 (12:19 +0200)
committerDamir Tomic <viperus@ntp.org>
Sat, 4 Jul 2015 10:19:42 +0000 (12:19 +0200)
bk: 5597b33eRguTJwteHW3HUhM1hqm7ng

tests/libntp/timespecops.c
tests/libntp/timevalops.c

index 063db1ab79a96a0d19ebdb0b6238ae3f507336a5..ac7a45d6c391c1673a17e9c2e3359f7d4b5e013a 100644 (file)
@@ -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;
        }
 }
index a969af0986d4f29dc2540ad1bfd7e793a20445df..9d832673d6c51058aa72d65cb2acfad0ea0ab032 100644 (file)
@@ -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;