aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-15 18:43:30 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-15 18:43:30 +0000
commit32f8a02cefe5e98b906923fbcfa1d8d3abfbae15 (patch)
treebff6b0357bbed7d2353aa27130a537ec3919bbc3 /main
parenta3817c97963d246eaa3ea21739626bab6010a7d6 (diff)
Merged revisions 47682 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r47682 | kpfleming | 2006-11-15 12:39:47 -0600 (Wed, 15 Nov 2006) | 2 lines ouch... don't use printf, use ast_log/ast_verbose ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47684 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/config.c b/main/config.c
index cf520a1c0..596528bb1 100644
--- a/main/config.c
+++ b/main/config.c
@@ -974,7 +974,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);
@@ -1027,9 +1027,9 @@ int config_text_file_save(const char *configfile, const struct ast_config *cfg,
ast_verbose("Saved\n");
} 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);