[svn-commits] rizzo: trunk r89109 - /trunk/main/audiohook.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Nov 8 03:20:06 CST 2007
Author: rizzo
Date: Thu Nov 8 03:20:05 2007
New Revision: 89109
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89109
Log:
use %d and cast to int instead of %zd for size_t object,
this helps portability.
Modified:
trunk/main/audiohook.c
Modified: trunk/main/audiohook.c
URL: http://svn.digium.com/view/asterisk/trunk/main/audiohook.c?view=diff&rev=89109&r1=89108&r2=89109
==============================================================================
--- trunk/main/audiohook.c (original)
+++ trunk/main/audiohook.c Thu Nov 8 03:20:05 2007
@@ -206,7 +206,7 @@
}
}
} 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 @@
}
}
} 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)
More information about the svn-commits
mailing list