diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-15 18:39:47 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-15 18:39:47 +0000 |
commit | 4faf0a020109eaa8193ad7e53e04875d7553605c (patch) | |
tree | d070f1868a42aec3b713eb1540e2444f25dbbb47 /config.c | |
parent | f0b90901ab58b47ecf02101e4f2c28d3064589ba (diff) |
ouch... don't use printf, use ast_log/ast_verbose
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@47682 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |