diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-11-08 09:20:05 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-11-08 09:20:05 +0000 |
commit | 339d27ebe90b10eb1f681c7a427e1d5127b87502 (patch) | |
tree | a6021910bcace2d6a6f754361dea0f120d03e68e /main | |
parent | 4216934121b63e76a98375939fac43dab325483a (diff) |
use %d and cast to int instead of %zd for size_t object,
this helps portability.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/audiohook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/audiohook.c b/main/audiohook.c index 4b7eacbca..06396b3a8 100644 --- a/main/audiohook.c +++ b/main/audiohook.c @@ -206,7 +206,7 @@ static struct ast_frame *audiohook_read_frame_both(struct ast_audiohook *audioho } } } else if (option_debug) - ast_log(LOG_DEBUG, "Failed to get %zd samples from read factory %p\n", samples, &audiohook->read_factory); + ast_log(LOG_DEBUG, "Failed to get %d samples from read factory %p\n", (int)samples, &audiohook->read_factory); /* Move on to the write factory... if there are enough samples, read them in */ if (ast_slinfactory_available(&audiohook->write_factory) >= samples) { @@ -225,7 +225,7 @@ static struct ast_frame *audiohook_read_frame_both(struct ast_audiohook *audioho } } } else if (option_debug) - ast_log(LOG_DEBUG, "Failed to get %zd samples from write factory %p\n", samples, &audiohook->write_factory); + ast_log(LOG_DEBUG, "Failed to get %d samples from write factory %p\n", (int)samples, &audiohook->write_factory); /* Basically we figure out which buffer to use... and if mixing can be done here */ if (!read_buf && !write_buf) |