builtin/replicate: Fix crash when logging at debug or trace levels

This commit is contained in:
Perttu Ahola 2014-10-22 11:46:28 +03:00
parent ab4d0dfb73
commit 9ef4bedf5f

View File

@ -437,8 +437,7 @@ struct Module: public interface::Module, public replicate::Interface
void send_to_peer(PeerId peer, const ss_ &name, const magic::VectorBuffer &buf)
{
log_d(MODULE, "%s: Update size: %zu, data=%s",
cs(name), buf.GetBuffer().Size());
log_d(MODULE, "%s: Update size: %zu", cs(name), buf.GetBuffer().Size());
ss_ data = buf_to_string(buf);
network::access(m_server, [&](network::Interface *inetwork){
inetwork->send(peer, name, data);