[svn-commits] kpfleming: branch 1.4 r47684 - in /branches/1.4: ./ main/config.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Nov 15 11:43:31 MST 2006


Author: kpfleming
Date: Wed Nov 15 12:43:30 2006
New Revision: 47684

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47684
Log:
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

........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/main/config.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/main/config.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/config.c?view=diff&rev=47684&r1=47683&r2=47684
==============================================================================
--- branches/1.4/main/config.c (original)
+++ branches/1.4/main/config.c Wed Nov 15 12:43:30 2006
@@ -974,7 +974,7 @@
 	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 @@
 			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);



More information about the svn-commits mailing list