diff options
author | Sven Gothel <[email protected]> | 2020-07-02 02:07:03 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-07-02 02:07:03 +0200 |
commit | b57ce9cff420cdb1b307c5f7f92151831a4ce8bf (patch) | |
tree | b7354c46ee99f08c959702a71696ba69d588d5ac /api | |
parent | 25f2918eae9bba977300871d82b03511a75c9346 (diff) |
Minor armv7l g++ 8.3.0 build fixed
Used 32bit machine: Raspbian 10.4 'buster', armv7l (armhf), g++ 8.3.0, OpenJDK 11.0.7
Note that main development occurs on GNU/Linux Debian 11 'bullseye', amd64, g++ 9.3.0, OpenJDK 11.0.7
Diffstat (limited to 'api')
-rw-r--r-- | api/direct_bt/dbt_debug.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/direct_bt/dbt_debug.hpp b/api/direct_bt/dbt_debug.hpp index c09f9a3e..4aa8ed47 100644 --- a/api/direct_bt/dbt_debug.hpp +++ b/api/direct_bt/dbt_debug.hpp @@ -65,12 +65,12 @@ extern "C" { template<class ListElemType> inline void printSharedPtrList(std::string prefix, std::vector<std::shared_ptr<ListElemType>> & list) { - fprintf(stderr, "%s: Start: %zd elements\n", prefix.c_str(), list.size()); + fprintf(stderr, "%s: Start: %zd elements\n", prefix.c_str(), (size_t)list.size()); int idx = 0; for (auto it = list.begin(); it != list.end(); idx++) { std::shared_ptr<ListElemType> & e = *it; if ( nullptr != e ) { - fprintf(stderr, "%s[%d]: useCount %zd, mem %p\n", prefix.c_str(), idx, e.use_count(), e.get()); + fprintf(stderr, "%s[%d]: useCount %zd, mem %p\n", prefix.c_str(), idx, (size_t)e.use_count(), e.get()); } else { fprintf(stderr, "%s[%d]: NULL\n", prefix.c_str(), idx); } |