Skip to content
Snippets Groups Projects
Commit 5d2a7dea authored by Mark Michelson's avatar Mark Michelson
Browse files

Use constants from inttypes.h to clear up 32-bit compilation errors


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@176706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e28b2b52
Branches
Tags
No related merge requests found
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
#include "asterisk.h" #include "asterisk.h"
#include <inttypes.h>
ASTERISK_FILE_VERSION(__FILE__, "$Revision$") ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/module.h" #include "asterisk/module.h"
...@@ -86,7 +88,7 @@ static char *handle_cli_sched_test(struct ast_cli_entry *e, int cmd, struct ast_ ...@@ -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 " 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); "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_ ...@@ -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: return_cleanup:
sched_context_destroy(con); sched_context_destroy(con);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment