summaryrefslogtreecommitdiff
path: root/src/HttpServerResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 12:12:06 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-20 12:12:06 +0000
commit03417e94b4aba60bf3cd835a1f7387ec18ea62d8 (patch)
tree48d296a85dd3fa435c6b60856818ff9d7ba56589 /src/HttpServerResponseCommand.cc
parent694fb307aa7e582a55bce7e995bde3a4614b3b4f (diff)
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use format specifier %lld for cuid_t. Defined cuid_t as long long int instead of int64_t, since g++ complains int64_t is not suitable for %lld.
Diffstat (limited to 'src/HttpServerResponseCommand.cc')
-rw-r--r--src/HttpServerResponseCommand.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/HttpServerResponseCommand.cc b/src/HttpServerResponseCommand.cc
index f282cf45..d5ffab65 100644
--- a/src/HttpServerResponseCommand.cc
+++ b/src/HttpServerResponseCommand.cc
@@ -75,26 +75,26 @@ bool HttpServerResponseCommand::execute()
httpServer_->sendResponse();
} catch(RecoverableException& e) {
A2_LOG_INFO_EX
- (fmt("CUID#%s - Error occurred while transmitting response body.",
- util::itos(getCuid()).c_str()),
+ (fmt("CUID#%lld - Error occurred while transmitting response body.",
+ getCuid()),
e);
return true;
}
if(httpServer_->sendBufferIsEmpty()) {
- A2_LOG_INFO(fmt("CUID#%s - HttpServer: all response transmitted.",
- util::itos(getCuid()).c_str()));
+ A2_LOG_INFO(fmt("CUID#%lld - HttpServer: all response transmitted.",
+ getCuid()));
if(httpServer_->supportsPersistentConnection()) {
- A2_LOG_INFO(fmt("CUID#%s - Persist connection.",
- util::itos(getCuid()).c_str()));
+ A2_LOG_INFO(fmt("CUID#%lld - Persist connection.",
+ getCuid()));
e_->addCommand
(new HttpServerCommand(getCuid(), httpServer_, e_, socket_));
}
return true;
} else {
if(timeoutTimer_.difference(global::wallclock) >= 10) {
- A2_LOG_INFO(fmt("CUID#%s - HttpServer: Timeout while trasmitting"
+ A2_LOG_INFO(fmt("CUID#%lld - HttpServer: Timeout while trasmitting"
" response.",
- util::itos(getCuid()).c_str()));
+ getCuid()));
return true;
} else {
e_->addCommand(this);