[asterisk-commits] twilson: branch 1.8 r323859 - /branches/1.8/tests/test_db.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 15 14:45:27 CDT 2011


Author: twilson
Date: Wed Jun 15 14:45:20 2011
New Revision: 323859

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323859
Log:
Fix more ARRAY_LEN format string issues

Modified:
    branches/1.8/tests/test_db.c

Modified: branches/1.8/tests/test_db.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/tests/test_db.c?view=diff&rev=323859&r1=323858&r2=323859
==============================================================================
--- branches/1.8/tests/test_db.c (original)
+++ branches/1.8/tests/test_db.c Wed Jun 15 14:45:20 2011
@@ -158,7 +158,7 @@
 	}
 
 	if (x != ARRAY_LEN(inputs)) {
-		ast_test_status_update(test, "ast_db_gettree returned %zu entries when we expected %lu\n", x, ARRAY_LEN(inputs));
+		ast_test_status_update(test, "ast_db_gettree returned %zu entries when we expected %zu\n", x, (size_t) ARRAY_LEN(inputs));
 		res = AST_TEST_FAIL;
 	}
 
@@ -186,7 +186,7 @@
 	}
 
 	if (x != (ARRAY_LEN(inputs) / 2)) {
-		ast_test_status_update(test, "ast_db_gettree returned %zu entries when we expected %lu\n", x, ARRAY_LEN(inputs) / 2);
+		ast_test_status_update(test, "ast_db_gettree returned %zu entries when we expected %zu\n", x, (size_t) ARRAY_LEN(inputs) / 2);
 		res = AST_TEST_FAIL;
 	}
 




More information about the asterisk-commits mailing list