diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 18:17:34 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 18:17:34 +0900 |
| commit | 2e5d9b056f2cf398d8996d93a4c7fbc1fbe66221 (patch) | |
| tree | 9f557267de4078108fd8ada3bfc1b8ec513c6f8a /src/Piece.cc | |
| parent | c4e66390acb285433a519ec8ee94f67bb7464bbf (diff) | |
Removed strconcat
Diffstat (limited to 'src/Piece.cc')
| -rw-r--r-- | src/Piece.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Piece.cc b/src/Piece.cc index a0698c3e..29b4cade 100644 --- a/src/Piece.cc +++ b/src/Piece.cc @@ -167,8 +167,11 @@ bool Piece::getAllMissingBlockIndexes } std::string Piece::toString() const { - return strconcat("piece: index=", util::itos(index_), - ", length=", util::itos(length_)); + char buf[256]; + snprintf(buf, sizeof(buf), "piece: index=%lu, length=%lu", + static_cast<unsigned long>(index_), + static_cast<unsigned long>(length_)); + return buf; } void Piece::reconfigure(size_t length) |
