From: Kevin P. Fleming Date: Wed, 15 Nov 2006 18:39:47 +0000 (+0000) Subject: ouch... don't use printf, use ast_log/ast_verbose X-Git-Tag: 1.2.14~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f72827b78cd69908c3272f2942d28019ac9a29fe;p=thirdparty%2Fasterisk.git ouch... don't use printf, use ast_log/ast_verbose git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47682 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/config.c b/config.c index b350454279..616bb657ed 100644 --- a/config.c +++ b/config.c @@ -698,7 +698,7 @@ int config_text_file_save(const char *configfile, const struct ast_config *cfg, if ((f = fopen(fn, "w"))) { #endif if (option_verbose > 1) - ast_verbose( VERBOSE_PREFIX_2 "Saving '%s': ", fn); + ast_verbose(VERBOSE_PREFIX_2 "Saving '%s': ", fn); fprintf(f, ";!\n"); fprintf(f, ";! Automatically generated configuration file\n"); fprintf(f, ";! Filename: %s (%s)\n", configfile, fn); @@ -731,9 +731,9 @@ int config_text_file_save(const char *configfile, const struct ast_config *cfg, } } else { if (option_debug) - printf("Unable to open for writing: %s\n", fn); + ast_log(LOG_DEBUG, "Unable to open for writing: %s\n", fn); if (option_verbose > 1) - printf( "Unable to write (%s)", strerror(errno)); + ast_verbose(VERBOSE_PREFIX_2 "Unable to write (%s)", strerror(errno)); return -1; } fclose(f);