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/FtpNegotiationCommand.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/FtpNegotiationCommand.cc')
| -rw-r--r-- | src/FtpNegotiationCommand.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/FtpNegotiationCommand.cc b/src/FtpNegotiationCommand.cc index 970d8132..58b8b06e 100644 --- a/src/FtpNegotiationCommand.cc +++ b/src/FtpNegotiationCommand.cc @@ -254,8 +254,8 @@ bool FtpNegotiationCommand::recvPwd() throw DL_ABORT_EX(fmt(EX_BAD_STATUS, status)); } ftp_->setBaseWorkingDir(pwd); - A2_LOG_INFO(fmt("CUID#%s - base working directory is '%s'", - util::itos(getCuid()).c_str(), pwd.c_str())); + A2_LOG_INFO(fmt("CUID#%lld - base working directory is '%s'", + getCuid(), pwd.c_str())); sequence_ = SEQ_SEND_CWD_PREP; return true; } @@ -338,8 +338,8 @@ bool FtpNegotiationCommand::recvMdtm() " a time value as in specified in RFC3659."); } } else { - A2_LOG_INFO(fmt("CUID#%s - MDTM command failed.", - util::itos(getCuid()).c_str())); + A2_LOG_INFO(fmt("CUID#%lld - MDTM command failed.", + getCuid())); } sequence_ = SEQ_SEND_SIZE; return true; @@ -474,8 +474,8 @@ bool FtpNegotiationCommand::recvSize() { } } else { - A2_LOG_INFO(fmt("CUID#%s - The remote FTP Server doesn't recognize SIZE" - " command. Continue.", util::itos(getCuid()).c_str())); + A2_LOG_INFO(fmt("CUID#%lld - The remote FTP Server doesn't recognize SIZE" + " command. Continue.", getCuid())); // Even if one of the other servers waiting in the queue supports SIZE // command, resuming and segmented downloading are disabled when the first // contacted FTP server doesn't support it. @@ -639,7 +639,7 @@ bool FtpNegotiationCommand::preparePasvConnect() { } else { // make a data connection to the server. A2_LOG_INFO(fmt(MSG_CONNECTING_TO_SERVER, - util::itos(getCuid()).c_str(), + getCuid(), dataConnAddr_.first.c_str(), dataConnAddr_.second)); dataSocket_.reset(new SocketCore()); @@ -661,7 +661,7 @@ bool FtpNegotiationCommand::resolveProxy() return false; } A2_LOG_INFO(fmt(MSG_CONNECTING_TO_SERVER, - util::itos(getCuid()).c_str(), + getCuid(), proxyAddr_.c_str(), proxyReq->getPort())); dataSocket_.reset(new SocketCore()); dataSocket_->establishConnection(proxyAddr_, proxyReq->getPort()); @@ -691,11 +691,11 @@ bool FtpNegotiationCommand::sendTunnelRequest() error.c_str())); } else { A2_LOG_INFO(fmt(MSG_CONNECT_FAILED_AND_RETRY, - util::itos(getCuid()).c_str(), + getCuid(), proxyAddr_.c_str(), proxyReq->getPort())); proxyAddr_ = nextProxyAddr; A2_LOG_INFO(fmt(MSG_CONNECTING_TO_SERVER, - util::itos(getCuid()).c_str(), + getCuid(), proxyAddr_.c_str(), proxyReq->getPort())); dataSocket_->establishConnection(proxyAddr_, proxyReq->getPort()); return false; |
