mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
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.
This commit is contained in:
parent
694fb307aa
commit
03417e94b4
36 changed files with 253 additions and 246 deletions
|
@ -165,14 +165,14 @@ bool DHTEntryPointNameResolveCommand::resolveHostname
|
|||
switch(resolver->getStatus()) {
|
||||
case AsyncNameResolver::STATUS_READY:
|
||||
A2_LOG_INFO(fmt(MSG_RESOLVING_HOSTNAME,
|
||||
util::itos(getCuid()).c_str(),
|
||||
getCuid(),
|
||||
hostname.c_str()));
|
||||
resolver->resolve(hostname);
|
||||
setNameResolverCheck(resolver);
|
||||
return false;
|
||||
case AsyncNameResolver::STATUS_SUCCESS:
|
||||
A2_LOG_INFO(fmt(MSG_NAME_RESOLUTION_COMPLETE,
|
||||
util::itos(getCuid()).c_str(),
|
||||
getCuid(),
|
||||
resolver->getHostname().c_str(),
|
||||
resolver->getResolvedAddresses().front().c_str()));
|
||||
return true;
|
||||
|
@ -180,7 +180,7 @@ bool DHTEntryPointNameResolveCommand::resolveHostname
|
|||
case AsyncNameResolver::STATUS_ERROR:
|
||||
throw DL_ABORT_EX
|
||||
(fmt(MSG_NAME_RESOLUTION_FAILED,
|
||||
util::itos(getCuid()).c_str(),
|
||||
getCuid(),
|
||||
hostname.c_str(),
|
||||
resolver->getError().c_str()));
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue