mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
misc: fix warnings by using libfmt
Change-Id: I7c22af5885e6e0386f4723d68bfee727faf8d068
This commit is contained in:
@ -668,7 +668,7 @@ IceTransport::Impl::flushTimerHeapAndIoQueue()
|
||||
|
||||
auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
std::chrono::steady_clock::now() - start);
|
||||
JAMI_DBG("[ice:%p] Timer heap flushed after %ld ms", this, duration.count());
|
||||
JAMI_DEBUG("[ice:{}] Timer heap flushed after {}", fmt::ptr(this), duration);
|
||||
|
||||
return static_cast<int>(pj_timer_heap_count(config_.stun_cfg.timer_heap));
|
||||
}
|
||||
|
@ -26,6 +26,7 @@
|
||||
//#define __STDC_FORMAT_MACROS 1
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/chrono.h>
|
||||
|
||||
#include <cinttypes> // for PRIx64
|
||||
#include <cstdarg>
|
||||
|
@ -1838,9 +1838,9 @@ SIPCall::addLocalIceAttributes()
|
||||
// resolution or other issues).
|
||||
auto duration = std::chrono::steady_clock::now() - start;
|
||||
if (duration > EXPECTED_ICE_INIT_MAX_TIME) {
|
||||
JAMI_WARN("[call:%s] ICE initialization time was unexpectedly high (%ld ms)",
|
||||
getCallId().c_str(),
|
||||
std::chrono::duration_cast<std::chrono::milliseconds>(duration).count());
|
||||
JAMI_WARNING("[call:{:s}] ICE initialization time was unexpectedly high ({})",
|
||||
getCallId(),
|
||||
std::chrono::duration_cast<std::chrono::milliseconds>(duration));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user