diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-30 17:28:43 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-30 17:28:43 +0000 |
commit | 54b4a0248194aa8dc567bffd6e8714561498653f (patch) | |
tree | f303ec3589ac5485090867ac7ecb00d9b8367c66 /testsuites/itrontests | |
parent | 2009-10-30 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-54b4a0248194aa8dc567bffd6e8714561498653f.tar.bz2 |
Use %ld to print "time"s.
Diffstat (limited to 'testsuites/itrontests')
-rw-r--r-- | testsuites/itrontests/itrontime01/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/itrontests/itrontime01/init.c b/testsuites/itrontests/itrontime01/init.c index 262b569ace..1973d72410 100644 --- a/testsuites/itrontests/itrontime01/init.c +++ b/testsuites/itrontests/itrontime01/init.c @@ -41,9 +41,9 @@ s_time = (1985L-1970L)*365L*24L*60L*60L; r_time = t_time - s_time; m_sec = r_time*1000; -printf( "Time from 1970: %d\n", t_time ); -printf( "Time between 1970 and 1985: %d\n", s_time ); -printf( "Time from 1985: %d\n", r_time ); +printf( "Time from 1970: %ld\n", t_time ); +printf( "Time between 1970 and 1985: %ld\n", s_time ); +printf( "Time from 1985: %ld\n", r_time ); printf("milliseconds: %ld\n",m_sec); return 0; |