m_num_peers is a regular int, not long: print %d instead of %ld.

This commit is contained in:
Jakob Petsovits 2015-07-14 17:49:12 -04:00
parent d138104c85
commit 27fe9822ad
1 changed files with 1 additions and 1 deletions

View File

@ -1807,7 +1807,7 @@ namespace libtorrent {
char ih_hex[41];
to_hex((const char*)&info_hash[0], 20, ih_hex);
char msg[200];
snprintf(msg, sizeof(msg), "incoming dht get_peers reply: %s, peers %ld", ih_hex, m_num_peers);
snprintf(msg, sizeof(msg), "incoming dht get_peers reply: %s, peers %d", ih_hex, m_num_peers);
return msg;
}