]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Pass format string
authorJames Golovich <james@gnuinter.net>
Sun, 24 Oct 2004 06:44:37 +0000 (06:44 +0000)
committerJames Golovich <james@gnuinter.net>
Sun, 24 Oct 2004 06:44:37 +0000 (06:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4079 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c
channels/chan_zap.c
channels/iax2-parser.c
pbx/pbx_dundi.c

index d8b0b38dd8dfcbbd021c7456c6b225579e1b87dd..ed87ad9947fafbf31de13c2b22f28d07c8ec378f 100755 (executable)
@@ -534,12 +534,12 @@ AST_MUTEX_DEFINE_STATIC(dpcache_lock);
 static void iax_debug_output(const char *data)
 {
        if (iaxdebug)
-               ast_verbose(data);
+               ast_verbose("%s", data);
 }
 
 static void iax_error_output(const char *data)
 {
-       ast_log(LOG_WARNING, data);
+       ast_log(LOG_WARNING, "%s", data);
 }
 
 /* XXX We probably should use a mutex when working with this XXX */
index c71e8878d2bd69a757aebce7534aecb4c37549e0..9f510981e9aab094a666718c3f43e246c7ed1323 100755 (executable)
@@ -7125,7 +7125,7 @@ static void *do_idle_thread(void *vchan)
 
 static void zt_pri_message(char *s)
 {
-       ast_verbose(s);
+       ast_verbose("%s", s);
 }
 
 static void zt_pri_error(char *s)
index 81d92a1759c5a9fed99275d0727299a23b2550ef..5a0e2421e731150f8a6e46e7e8d613a48fda2779 100755 (executable)
@@ -32,7 +32,7 @@ static int oframes = 0;
 
 static void internaloutput(const char *str)
 {
-       printf(str);
+       fputs(str, stdout);
 }
 
 static void internalerror(const char *str)
index 407d96953361047eb850270a7a0a26b2d69f3afd..a7d2644b20ca6164f5a02eb4455b07d51750ad9d 100755 (executable)
@@ -249,12 +249,12 @@ static int dundi_xmit(struct dundi_packet *pack);
 static void dundi_debug_output(const char *data)
 {
        if (dundidebug)
-               ast_verbose(data);
+               ast_verbose("%s", data);
 }
 
 static void dundi_error_output(const char *data)
 {
-       ast_log(LOG_WARNING, data);
+       ast_log(LOG_WARNING, "%s", data);
 }
 
 static int has_permission(struct permission *ps, char *cont)