logging build fix and indentation fix

This commit is contained in:
Arvid Norberg 2009-03-27 17:14:15 +00:00
parent 3d2bf88894
commit 9c4c49c443
2 changed files with 4 additions and 4 deletions

View File

@ -121,7 +121,7 @@ namespace libtorrent
boost::shared_array<char> buffer; boost::shared_array<char> buffer;
int piece; int piece;
int size; int size;
}; };
struct TORRENT_EXPORT file_renamed_alert: torrent_alert struct TORRENT_EXPORT file_renamed_alert: torrent_alert

View File

@ -1696,9 +1696,9 @@ namespace libtorrent
{ {
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING #if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_ERROR_LOGGING
(*m_logger) << time_now_string() (*m_logger) << time_now_string()
<< " <== INVALID_PIECE [ piece: " << p.piece << " | " << " <== INVALID_PIECE [ piece: " << r.piece << " | "
"start: " << p.start << " | " "start: " << r.start << " | "
"length: " << p.length << " ]\n"; "length: " << r.length << " ]\n";
#endif #endif
disconnect("got invalid piece packet", 2); disconnect("got invalid piece packet", 2);
return; return;