diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-27 22:41:58 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-27 22:41:58 +0000 |
commit | c423c07af0c6af6760ff63b8aaec6310755b9430 (patch) | |
tree | c15696a7e8026833dcee1ae4fc8f1b81ebc1081c | |
parent | 03755b205ca75dc2b9e164081cbdde1b21f628bc (diff) |
fix logging issue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4563 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | apps/app_voicemail.c | 6 | ||||
-rwxr-xr-x | loader.c | 2 | ||||
-rwxr-xr-x | logger.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 8e6e41179..8e9d2fa28 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2988,7 +2988,7 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i snprintf(todir, sizeof(todir), "%s/voicemail/%s/%s/INBOX", (char *)ast_config_AST_SPOOL_DIR, vmtmp->context, vmtmp->mailbox); snprintf(sys, sizeof(sys), "mkdir -p %s\n", todir); snprintf(ext_context, sizeof(ext_context), "%s@%s", vmtmp->mailbox, vmtmp->context); - ast_log(LOG_DEBUG, sys); + ast_log(LOG_DEBUG, "%s", sys); ast_safe_system(sys); todircount = count_messages(todir); @@ -2999,11 +2999,11 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i if (!strcasecmp(s, "wav49")) s = "WAV"; snprintf(sys, sizeof(sys), "cp %s/msg%04d.%s %s/msg%04d.%s\n", dir, curmsg, s, todir, todircount, s); - ast_log(LOG_DEBUG, sys); + ast_log(LOG_DEBUG, "%s", sys); ast_safe_system(sys); } snprintf(sys, sizeof(sys), "cp %s/msg%04d.txt %s/msg%04d.txt\n", dir, curmsg, todir, todircount); - ast_log(LOG_DEBUG, sys); + ast_log(LOG_DEBUG, "%s", sys); ast_safe_system(sys); snprintf(fn, sizeof(fn), "%s/msg%04d", todir,todircount); @@ -67,7 +67,7 @@ static int printdigest(unsigned char *d) strcat(buf, buf2); } strcat(buf, "\n"); - ast_log(LOG_DEBUG, buf); + ast_log(LOG_DEBUG, "%s", buf); return 0; } @@ -700,7 +700,7 @@ extern void ast_verbose(const char *fmt, ...) } /* else fprintf(stdout, stuff + opos); */ - ast_log(LOG_VERBOSE, stuff); + ast_log(LOG_VERBOSE, "%s", stuff); if (strlen(stuff)) { if (stuff[strlen(stuff)-1] != '\n') replacelast = 1; |