[svn-commits] russell: branch 1.4 r428 - /branches/1.4/res_config_mysql.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Aug 23 12:21:45 CDT 2007
Author: russell
Date: Thu Aug 23 12:21:44 2007
New Revision: 428
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=428
Log:
Fix a format string error that caused a crash. This debug message tried to
print something as string that was just an int.
(closes issue #10520, reported by johann8384, patch by me)
Modified:
branches/1.4/res_config_mysql.c
Modified: branches/1.4/res_config_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/branches/1.4/res_config_mysql.c?view=diff&rev=428&r1=427&r2=428
==============================================================================
--- branches/1.4/res_config_mysql.c (original)
+++ branches/1.4/res_config_mysql.c Thu Aug 23 12:21:44 2007
@@ -643,8 +643,8 @@
connect_time = time(NULL);
if(mysql_select_db(&mysql, my_database) != 0) {
- ast_log(LOG_WARNING, "MySQL RealTime: Unable to select database: %s. Still Connected (%d).\n", my_database, mysql_errno(&mysql));
- ast_log(LOG_DEBUG, "MySQL RealTime: Database Select Failed (%d): %s\n", mysql_error(&mysql), mysql_errno(&mysql));
+ ast_log(LOG_WARNING, "MySQL RealTime: Unable to select database: %s. Still Connected (%u).\n", my_database, mysql_errno(&mysql));
+ ast_log(LOG_DEBUG, "MySQL RealTime: Database Select Failed (%u): %s\n", mysql_errno(&mysql), mysql_error(&mysql));
return 0;
}
More information about the svn-commits
mailing list