summaryrefslogtreecommitdiff
path: root/src/DHTTokenTracker.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 09:36:14 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 09:36:14 +0000
commit694fb307aa7e582a55bce7e995bde3a4614b3b4f (patch)
tree42bf3e703ebd706c9ebdd62bca59396f2d67a790 /src/DHTTokenTracker.cc
parent580098eb4929a3bdbf424af18da361259ef2efe5 (diff)
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced StringFormat with fmt
Diffstat (limited to 'src/DHTTokenTracker.cc')
-rw-r--r--src/DHTTokenTracker.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DHTTokenTracker.cc b/src/DHTTokenTracker.cc
index 7786a16d..b67e7b63 100644
--- a/src/DHTTokenTracker.cc
+++ b/src/DHTTokenTracker.cc
@@ -42,7 +42,7 @@
#include "DHTConstants.h"
#include "MessageDigest.h"
#include "MessageDigestHelper.h"
-#include "StringFormat.h"
+#include "fmt.h"
namespace aria2 {
@@ -70,8 +70,8 @@ std::string DHTTokenTracker::generateToken
int compactlen = bittorrent::packcompact(src+DHT_ID_LENGTH, ipaddr, port);
if(compactlen == 0) {
throw DL_ABORT_EX
- (StringFormat("Token generation failed: ipaddr=%s, port=%u",
- ipaddr.c_str(), port).str());
+ (fmt("Token generation failed: ipaddr=%s, port=%u",
+ ipaddr.c_str(), port));
}
memcpy(src, infoHash, DHT_ID_LENGTH);
memcpy(src+DHT_ID_LENGTH+COMPACT_LEN_IPV6, secret, SECRET_SIZE);