]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix more ARRAY_LEN format string issues
authorTerry Wilson <twilson@digium.com>
Wed, 15 Jun 2011 19:45:20 +0000 (19:45 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 15 Jun 2011 19:45:20 +0000 (19:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@323859 65c4cc65-6c06-0410-ace0-fbb531ad65f3

tests/test_db.c

index 0b40ffd9f4a227556458cfe7d409c91abf95ef0a..6d7973c071d4eb333fadf9332b4c740be3b3f0c9 100644 (file)
@@ -158,7 +158,7 @@ AST_TEST_DEFINE(gettree_deltree)
        }
 
        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 @@ AST_TEST_DEFINE(gettree_deltree)
        }
 
        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;
        }