diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-11-15 18:44:29 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-11-15 18:44:29 +0000 |
commit | 00c5f6d032f6c9efbd237306d91359fbb082e1cd (patch) | |
tree | f3ac2683b1d3daeb73ae309e8c436efbef975a33 /main/config.c | |
parent | 7dab91258a73f6af8d4bd18d5e471ddfc8d7bbeb (diff) |
Merged revisions 47684 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r47684 | kpfleming | 2006-11-15 12:43:30 -0600 (Wed, 15 Nov 2006) | 10 lines
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: https://origsvn.digium.com/svn/asterisk/trunk@47685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/config.c')
-rw-r--r-- | main/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/config.c b/main/config.c index 8cd1194e8..154ee320e 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); |