enable request logging in regression testing

This commit is contained in:
Arvid Norberg 2013-07-30 15:59:41 +00:00
parent 4ecccb6fea
commit df97a76c2f
2 changed files with 2 additions and 2 deletions

View File

@ -12,6 +12,6 @@ time_limit: 500
features: features:
- variant=release asserts=production - variant=release asserts=production
- encryption=openssl statistics=on logging=verbose disk-stats=on bandwidth-limit-logging=on dht=logging - encryption=openssl statistics=on logging=verbose disk-stats=on bandwidth-limit-logging=on dht=logging request-log=on
- ipv6=off dht=off extensions=off logging=none deprecated-functions=off - ipv6=off dht=off extensions=off logging=none deprecated-functions=off

View File

@ -90,7 +90,7 @@ namespace libtorrent
detail::write_uint64(total_microseconds((time_now_hires() - min_time())), ptr); detail::write_uint64(total_microseconds((time_now_hires() - min_time())), ptr);
memcpy(ptr, &ih[0], 8); memcpy(ptr, &ih[0], 8);
ptr += 8; ptr += 8;
detail::write_uint32(boost::uint32_t(p), ptr); detail::write_uint32(uintptr_t(p) & 0xffffffff, ptr);
detail::write_uint32(r.piece, ptr); detail::write_uint32(r.piece, ptr);
detail::write_uint32(r.start, ptr); detail::write_uint32(r.start, ptr);
detail::write_uint32(r.length, ptr); detail::write_uint32(r.length, ptr);