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/FtpFinishDownloadCommand.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/FtpFinishDownloadCommand.cc')
| -rw-r--r-- | src/FtpFinishDownloadCommand.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/FtpFinishDownloadCommand.cc b/src/FtpFinishDownloadCommand.cc index 0f218784..ce63a73f 100644 --- a/src/FtpFinishDownloadCommand.cc +++ b/src/FtpFinishDownloadCommand.cc @@ -91,20 +91,20 @@ bool FtpFinishDownloadCommand::execute() getSocket(), options); } } else { - A2_LOG_INFO(fmt("CUID#%s - Bad status for transfer complete.", - util::itos(getCuid()).c_str())); + A2_LOG_INFO(fmt("CUID#%lld - Bad status for transfer complete.", + getCuid())); } } else if(getCheckPoint().difference(global::wallclock) >= getTimeout()) { - A2_LOG_INFO(fmt("CUID#%s - Timeout before receiving transfer complete.", - util::itos(getCuid()).c_str())); + A2_LOG_INFO(fmt("CUID#%lld - Timeout before receiving transfer complete.", + getCuid())); } else { getDownloadEngine()->addCommand(this); return false; } } catch(RecoverableException& e) { - A2_LOG_INFO_EX(fmt("CUID#%s - Exception was thrown, but download was" + A2_LOG_INFO_EX(fmt("CUID#%lld - Exception was thrown, but download was" " finished, so we can ignore the exception.", - util::itos(getCuid()).c_str()), + getCuid()), e); } if(getRequestGroup()->downloadFinished()) { |
