From 3507e5f909195bd268419ec1241192c3e85093d9 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 3 Nov 2011 22:20:37 +0000 Subject: [PATCH] fix ut_metadata logging --- src/ut_metadata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ut_metadata.cpp b/src/ut_metadata.cpp index e34e752e0..1c3339a52 100644 --- a/src/ut_metadata.cpp +++ b/src/ut_metadata.cpp @@ -216,7 +216,7 @@ namespace libtorrent { namespace TORRENT_ASSERT(!m_pc.associated_torrent().expired()); #ifdef TORRENT_VERBOSE_LOGGING - m_pc.peer_log("<== UT_METADATA [ type: %d | piece: %d ]", type, piece); + m_pc.peer_log("==> UT_METADATA [ type: %d | piece: %d ]", type, piece); #endif // abort if the peer doesn't support the metadata extension @@ -235,7 +235,7 @@ namespace libtorrent { namespace if (piece < 0 || piece >= int(m_tp.metadata().left() + 16 * 1024 - 1)/(16*1024)) { #ifdef TORRENT_VERBOSE_LOGGING - m_pc.peer_log("<== UT_METADATA [ invalid piece %d metadata size: %d ]" + m_pc.peer_log("*** UT_METADATA [ invalid piece %d metadata size: %d ]" , piece, int(m_tp.metadata().left())); #endif m_pc.disconnect(errors::invalid_metadata_message, 2);