diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-06-16 10:24:26 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-06-16 10:51:45 +0000 |
commit | a32335d7b9defb7313a978c517e6b822d4fbab05 (patch) | |
tree | b88aa8c4bc750c7d2941df6d10818e7d15fdf6e1 /vespamalloc/src | |
parent | 4db58e6da803b21f6a66b20c1ba93aba06191a70 (diff) |
Include fastos.h first.
Diffstat (limited to 'vespamalloc/src')
-rw-r--r-- | vespamalloc/src/tests/allocfree/allocfree.cpp | 8 | ||||
-rw-r--r-- | vespamalloc/src/tests/allocfree/linklist.cpp | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/vespamalloc/src/tests/allocfree/allocfree.cpp b/vespamalloc/src/tests/allocfree/allocfree.cpp index 0f7b4d53c6f..f1ecb74754b 100644 --- a/vespamalloc/src/tests/allocfree/allocfree.cpp +++ b/vespamalloc/src/tests/allocfree/allocfree.cpp @@ -1,6 +1,6 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/log/log.h> #include <vespa/fastos/fastos.h> +#include <vespa/log/log.h> #include <vespa/vespalib/testkit/testapp.h> #include "producerconsumer.h" #include <map> @@ -107,9 +107,9 @@ int Test::Main() { EXPECT_EQUAL(numFreeOperations, numMallocOperations); const size_t numCrossThreadMallocFreeOperations(numMallocOperations); - fprintf(stderr, "Did %" PRIu64 " Cross thread malloc/free operations\n", numCrossThreadMallocFreeOperations); - fprintf(stderr, "Did %" PRIu64 " Same thread malloc/free operations\n", numSameThreadMallocFreeOperations); - fprintf(stderr, "Did %" PRIu64 " Total operations\n", numCrossThreadMallocFreeOperations + numSameThreadMallocFreeOperations); + fprintf(stderr, "Did %lu Cross thread malloc/free operations\n", numCrossThreadMallocFreeOperations); + fprintf(stderr, "Did %lu Same thread malloc/free operations\n", numSameThreadMallocFreeOperations); + fprintf(stderr, "Did %lu Total operations\n", numCrossThreadMallocFreeOperations + numSameThreadMallocFreeOperations); TEST_DONE(); } diff --git a/vespamalloc/src/tests/allocfree/linklist.cpp b/vespamalloc/src/tests/allocfree/linklist.cpp index 5ad31d481f9..39cd237420b 100644 --- a/vespamalloc/src/tests/allocfree/linklist.cpp +++ b/vespamalloc/src/tests/allocfree/linklist.cpp @@ -1,10 +1,10 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/log/log.h> #include <vespa/fastos/fastos.h> #include <vespa/vespalib/testkit/testapp.h> #include "producerconsumer.h" #include <vespamalloc/malloc/allocchunk.h> #include <vespamalloc/util/callstack.h> +#include <vespa/log/log.h> using vespalib::Consumer; using vespalib::Producer; @@ -169,13 +169,13 @@ int Test::Main() { FastOS_Thread::Sleep(1000); } pool.Close(); - fprintf(stderr, "Did (%" PRIu64 " + %" PRIu64 ") = %" PRIu64 " linkIn operations\n", + fprintf(stderr, "Did (%lu + %lu) = %lu linkIn operations\n", c1.operations(), c2.operations(), c1.operations() + c2.operations()); - fprintf(stderr, "Did (%" PRIu64 " + %" PRIu64 ") = %" PRIu64 " linkOut operations\n", + fprintf(stderr, "Did (%lu + %lu) = %lu linkOut operations\n", p1.operations(), p2.operations(), p1.operations() + p2.operations()); - fprintf(stderr, "Did (%" PRIu64 " + %" PRIu64 ") = %" PRIu64 " linkInOut operations\n", + fprintf(stderr, "Did (%lu + %lu) = %lu linkInOut operations\n", pc1.operationsConsumed(), pc2.operationsConsumed(), pc1.operationsConsumed() + pc2.operationsConsumed()); - fprintf(stderr, "Did %" PRIu64 " Total operations\n", + fprintf(stderr, "Did %lu Total operations\n", c1.operations() + c2.operations() + p1.operations() + p2.operations() + pc1.operationsConsumed() + pc2.operationsConsumed()); fprintf(stderr, "Start verifying result 2.\n"); for (size_t i=0; i < NumBlocks; i++) { |