diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 12:12:06 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 12:12:06 +0000 |
| commit | 03417e94b4aba60bf3cd835a1f7387ec18ea62d8 (patch) | |
| tree | 48d296a85dd3fa435c6b60856818ff9d7ba56589 /src/HttpResponse.cc | |
| parent | 694fb307aa7e582a55bce7e995bde3a4614b3b4f (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/HttpResponse.cc')
| -rw-r--r-- | src/HttpResponse.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HttpResponse.cc b/src/HttpResponse.cc index 14ede864..880adf76 100644 --- a/src/HttpResponse.cc +++ b/src/HttpResponse.cc @@ -115,7 +115,7 @@ std::string HttpResponse::determinFilename() const } } else { A2_LOG_INFO(fmt(MSG_CONTENT_DISPOSITION_DETECTED, - util::itos(cuid_).c_str(), + cuid_, contentDisposition.c_str())); return contentDisposition; } @@ -147,12 +147,12 @@ void HttpResponse::processRedirect() if(httpRequest_->getRequest()->redirectUri(getRedirectURI())) { A2_LOG_INFO(fmt(MSG_REDIRECT, - util::itos(cuid_).c_str(), + cuid_, httpRequest_->getRequest()->getCurrentUri().c_str())); } else { throw DL_RETRY_EX - (fmt("CUID#%s - Redirect to %s failed. It may not be a valid URI.", - util::itos(cuid_).c_str(), + (fmt("CUID#%lld - Redirect to %s failed. It may not be a valid URI.", + cuid_, httpRequest_->getRequest()->getCurrentUri().c_str())); } } |
