misc: fix compilation warnings

Change-Id: Ifa30deb2740f80c6c6d222c5984a118e71037c2e
This commit is contained in:
Adrien Béraud
2022-10-19 10:16:56 -04:00
parent 9b2bb28f27
commit 8e0c09256a
5 changed files with 12 additions and 12 deletions

View File

@ -984,7 +984,7 @@ TransferManager::sendFile(const std::string& path,
// If the transfer is already in progress (aka not finished)
// we do not need to send the request and can ignore it.
if (!it->second->isFinished()) {
JAMI_DBG("Can't send request for %lu. Already sending the file", tid);
JAMI_DEBUG("Can't send request for {}. Already sending the file", tid);
return {};
}
pimpl_->oMap_.erase(it);
@ -1024,7 +1024,7 @@ TransferManager::acceptFile(const DRing::DataTransferId& id, const std::string&
std::lock_guard<std::mutex> lk {pimpl_->mapMutex_};
auto it = pimpl_->iMap_.find(id);
if (it == pimpl_->iMap_.end()) {
JAMI_WARN("Cannot accept %lu, request not found", id);
JAMI_WARNING("Cannot accept {:d}, request not found", id);
return false;
}
it->second->accept(path, 0);

View File

@ -912,7 +912,7 @@ ConnectionManager::Impl::onDhtPeerRequest(const PeerConnectionRequest& req,
};
ice_config.tcpEnable = true;
ice_config.onInitDone = [w, req, deviceId, eraseInfo](bool ok) {
ice_config.onInitDone = [w, req, eraseInfo](bool ok) {
auto shared = w.lock();
if (!shared)
return;
@ -932,7 +932,7 @@ ConnectionManager::Impl::onDhtPeerRequest(const PeerConnectionRequest& req,
});
};
ice_config.onNegoDone = [w, req, eraseInfo, deviceId](bool ok) {
ice_config.onNegoDone = [w, req, eraseInfo](bool ok) {
auto shared = w.lock();
if (!shared)
return;

View File

@ -382,7 +382,7 @@ JamiAccount::newIncomingCall(const std::string& from,
const std::vector<DRing::MediaMap>& mediaList,
const std::shared_ptr<SipTransport>& sipTransp)
{
JAMI_DBG("New incoming call from %s with %lu media", from.c_str(), mediaList.size());
JAMI_DEBUG("New incoming call from {:s} with {:d} media", from, mediaList.size());
if (sipTransp) {
std::unique_lock<std::mutex> connLock(sipConnsMtx_);

View File

@ -651,15 +651,15 @@ MultiplexedSocket::monitor() const
if (!cert || !cert->issuer)
return;
auto userUri = cert->issuer->getId().toString();
JAMI_DBG("- Socket with device: %s - account: %s", deviceId().to_c_str(), userUri.c_str());
JAMI_DEBUG("- Socket with device: {:s} - account: {:s}", deviceId().to_c_str(), userUri);
auto now = clock::now();
JAMI_DBG("- Duration: %lu",
std::chrono::duration_cast<std::chrono::milliseconds>(now - pimpl_->start_).count());
JAMI_DEBUG("- Duration: {}",
std::chrono::duration_cast<std::chrono::milliseconds>(now - pimpl_->start_));
pimpl_->endpoint->monitor();
std::lock_guard<std::mutex> lk(pimpl_->socketsMutex);
for (const auto& [_, channel] : pimpl_->sockets) {
if (channel)
JAMI_DBG("\t\t- Channel with name %s", channel->name().c_str());
JAMI_DEBUG("\t\t- Channel with name {:s}", channel->name());
}
}

View File

@ -1848,9 +1848,9 @@ Manager::incomingCall(const std::string& accountId, Call& call)
JAMI_WARN("Incoming call %s has an empty media list", call.getCallId().c_str());
}
JAMI_INFO("Incoming call %s on account %s with %lu media",
call.getCallId().c_str(),
accountId.c_str(),
JAMI_DEBUG("Incoming call {:s} on account {:s} with {:d} media",
call.getCallId(),
accountId,
mediaList.size());
// Report the call using new API.