summaryrefslogtreecommitdiff
path: root/src/HttpServerCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-13 20:55:06 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-11-13 20:55:06 +0900
commit16877413037ceefad81669083c953c4638973f95 (patch)
tree746b6a0e7128c39674d1272ecb51ab8e4005060c /src/HttpServerCommand.cc
parent9e5124eb11f1232aec77999795270196e95aade8 (diff)
Use fmt instead of util::itos
Diffstat (limited to 'src/HttpServerCommand.cc')
-rw-r--r--src/HttpServerCommand.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc
index 9cb0ebe1..a2089645 100644
--- a/src/HttpServerCommand.cc
+++ b/src/HttpServerCommand.cc
@@ -136,10 +136,11 @@ bool HttpServerCommand::execute()
if(static_cast<uint64_t>
(e_->getOption()->getAsInt(PREF_RPC_MAX_REQUEST_SIZE)) <
httpServer_->getContentLength()) {
- A2_LOG_INFO(fmt("Request too long. ContentLength=%s."
- " See --rpc-max-request-size option to loose"
- " this limitation.",
- util::uitos(httpServer_->getContentLength()).c_str()));
+ A2_LOG_INFO
+ (fmt("Request too long. ContentLength=%lld."
+ " See --rpc-max-request-size option to loose"
+ " this limitation.",
+ static_cast<long long int>(httpServer_->getContentLength())));
return true;
}
Command* command = new HttpServerBodyCommand(getCuid(), httpServer_, e_,