From 2e40a6fbb84ef21bb9551c653199964e55d7954b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 20 Oct 2020 01:22:12 +0200 Subject: adopt to ringbuffer::getSize() -> size_t changes --- src/direct_bt/DBTManager.cpp | 2 +- src/direct_bt/GATTHandler.cpp | 2 +- src/direct_bt/HCIHandler.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/direct_bt/DBTManager.cpp b/src/direct_bt/DBTManager.cpp index 724004f7..8cf6a31e 100644 --- a/src/direct_bt/DBTManager.cpp +++ b/src/direct_bt/DBTManager.cpp @@ -125,7 +125,7 @@ void DBTManager::mgmtReaderThreadImpl() noexcept { } { const std::lock_guard lock(mtx_mgmtReaderLifecycle); // RAII-style acquire and relinquish via destructor - WORDY_PRINT("DBTManager::reader: Ended. Ring has %d entries flushed", mgmtEventRing.getSize()); + WORDY_PRINT("DBTManager::reader: Ended. Ring has %zu entries flushed", mgmtEventRing.getSize()); mgmtEventRing.clear(); mgmtReaderRunning = false; cv_mgmtReaderInit.notify_all(); diff --git a/src/direct_bt/GATTHandler.cpp b/src/direct_bt/GATTHandler.cpp index 25af8b40..087814c6 100644 --- a/src/direct_bt/GATTHandler.cpp +++ b/src/direct_bt/GATTHandler.cpp @@ -269,7 +269,7 @@ void GATTHandler::l2capReaderThreadImpl() { } { const std::lock_guard lock(mtx_l2capReaderLifecycle); // RAII-style acquire and relinquish via destructor - WORDY_PRINT("GATTHandler::reader: Ended. Ring has %d entries flushed", attPDURing.getSize()); + WORDY_PRINT("GATTHandler::reader: Ended. Ring has %zu entries flushed", attPDURing.getSize()); attPDURing.clear(); l2capReaderRunning = false; cv_l2capReaderInit.notify_all(); diff --git a/src/direct_bt/HCIHandler.cpp b/src/direct_bt/HCIHandler.cpp index 485e116f..750386d4 100644 --- a/src/direct_bt/HCIHandler.cpp +++ b/src/direct_bt/HCIHandler.cpp @@ -322,7 +322,7 @@ void HCIHandler::hciReaderThreadImpl() noexcept { } { const std::lock_guard lock(mtx_hciReaderLifecycle); // RAII-style acquire and relinquish via destructor - WORDY_PRINT("HCIHandler::reader: Ended. Ring has %d entries flushed", hciEventRing.getSize()); + WORDY_PRINT("HCIHandler::reader: Ended. Ring has %zu entries flushed", hciEventRing.getSize()); hciEventRing.clear(); hciReaderRunning = false; cv_hciReaderInit.notify_all(); -- cgit v1.2.3