[asterisk-commits] mmichelson: trunk r176706 - /trunk/tests/test_sched.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 17 16:02:42 CST 2009


Author: mmichelson
Date: Tue Feb 17 16:02:42 2009
New Revision: 176706

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176706
Log:
Use constants from inttypes.h to clear up 64-bit compilation errors


Modified:
    trunk/tests/test_sched.c

Modified: trunk/tests/test_sched.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/tests/test_sched.c?view=diff&rev=176706&r1=176705&r2=176706
==============================================================================
--- trunk/tests/test_sched.c (original)
+++ trunk/tests/test_sched.c Tue Feb 17 16:02:42 2009
@@ -24,6 +24,8 @@
  */
 
 #include "asterisk.h"
+
+#include <inttypes.h>
 
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
@@ -86,7 +88,7 @@
 		}
 	}
 
-	ast_cli(a->fd, "Test complete - %ld us\n", ast_tvdiff_us(ast_tvnow(), start));
+	ast_cli(a->fd, "Test complete - %" PRIi64 " us\n", ast_tvdiff_us(ast_tvnow(), start));
 
 	ast_cli(a->fd, "Testing ast_sched_del() performance - timing how long it takes "
 			"to delete %u entries with random time intervals from 0 to 60 seconds\n", num);
@@ -100,7 +102,7 @@
 		}
 	}
 
-	ast_cli(a->fd, "Test complete - %ld us\n", ast_tvdiff_us(ast_tvnow(), start));
+	ast_cli(a->fd, "Test complete - %" PRIi64 " us\n", ast_tvdiff_us(ast_tvnow(), start));
 
 return_cleanup:
 	sched_context_destroy(con);




More information about the asterisk-commits mailing list