[asterisk-commits] kpfleming: branch 1.2 r47682 - /branches/1.2/config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 15 11:39:47 MST 2006


Author: kpfleming
Date: Wed Nov 15 12:39:47 2006
New Revision: 47682

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47682
Log:
ouch... don't use printf, use ast_log/ast_verbose

Modified:
    branches/1.2/config.c

Modified: branches/1.2/config.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/config.c?view=diff&rev=47682&r1=47681&r2=47682
==============================================================================
--- branches/1.2/config.c (original)
+++ branches/1.2/config.c Wed Nov 15 12:39:47 2006
@@ -698,7 +698,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);
@@ -731,9 +731,9 @@
 		}
 	} 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 asterisk-commits mailing list