fix typo in test

This commit is contained in:
Arvid Norberg 2015-04-12 02:54:43 +00:00
parent 8e6efd7fea
commit b148f21314
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ void send_bitfield(stream_socket& s, char const* bits)
char* ptr = msg;
write_int32(packet_size-4, ptr);
write_int8(5, ptr);
log("==> bitfield [%s]");
log("==> bitfield [%s]", bits);
for (int i = 0; i < num_pieces; ++i)
{
ptr[i/8] |= (bits[i] == '1' ? 1 : 0) << i % 8;