aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-17 22:02:42 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-17 22:02:42 +0000
commitfc0ec9bab213d58cdf275c0bf0e8462393f178df (patch)
tree64bba32c964c6eab226abebda539f001fea9ecca /tests
parent9f40716814f37256f33ea9a0ddbe41880c19012a (diff)
Use constants from inttypes.h to clear up 32-bit compilation errors
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@176706 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'tests')
-rw-r--r--tests/test_sched.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_sched.c b/tests/test_sched.c
index a6bb57dfb..6222cfc02 100644
--- a/tests/test_sched.c
+++ b/tests/test_sched.c
@@ -25,6 +25,8 @@
#include "asterisk.h"
+#include <inttypes.h>
+
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/module.h"
@@ -86,7 +88,7 @@ static char *handle_cli_sched_test(struct ast_cli_entry *e, int cmd, struct ast_
}
}
- 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 @@ static char *handle_cli_sched_test(struct ast_cli_entry *e, int cmd, struct ast_
}
}
- 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);