From 03417e94b4aba60bf3cd835a1f7387ec18ea62d8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 20 Nov 2010 12:12:06 +0000 Subject: 2010-11-20 Tatsuhiro Tsujikawa 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. --- src/FileAllocationDispatcherCommand.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/FileAllocationDispatcherCommand.cc') diff --git a/src/FileAllocationDispatcherCommand.cc b/src/FileAllocationDispatcherCommand.cc index 58a82061..00c282e9 100644 --- a/src/FileAllocationDispatcherCommand.cc +++ b/src/FileAllocationDispatcherCommand.cc @@ -46,14 +46,15 @@ namespace aria2 { FileAllocationDispatcherCommand::FileAllocationDispatcherCommand (cuid_t cuid, const SharedHandle& fileAllocMan, - DownloadEngine* e):SequentialDispatcherCommand - (cuid, fileAllocMan, e) {} + DownloadEngine* e) + : SequentialDispatcherCommand(cuid, fileAllocMan, e) +{} Command* FileAllocationDispatcherCommand::createCommand (const SharedHandle& entry) { cuid_t newCUID = getDownloadEngine()->newCUID(); - A2_LOG_INFO(fmt(MSG_FILE_ALLOCATION_DISPATCH, util::itos(newCUID).c_str())); + A2_LOG_INFO(fmt(MSG_FILE_ALLOCATION_DISPATCH, newCUID)); FileAllocationCommand* command = new FileAllocationCommand(newCUID, entry->getRequestGroup(), getDownloadEngine(), entry); -- cgit