From 27fe9822ad6e8d4d42bf0fc4c07cc02587065ae6 Mon Sep 17 00:00:00 2001 From: Jakob Petsovits Date: Tue, 14 Jul 2015 17:49:12 -0400 Subject: [PATCH] m_num_peers is a regular int, not long: print %d instead of %ld. --- src/alert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alert.cpp b/src/alert.cpp index a047ee45c..9b6b725dd 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -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; }