From bc1f1bdf359ec9f5032f8e9a5d2049dfb1cb112d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 12 Feb 2008 13:45:54 +0000 Subject: [PATCH] 2008-02-12 Tatsuhiro Tsujikawa Fixed typo in log message and define the message in message.h * src/TimedHaltCommand.cc * src/message.h --- ChangeLog | 6 ++++++ src/TimedHaltCommand.cc | 3 ++- src/message.h | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d6e2bf3b..0c188de9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-12 Tatsuhiro Tsujikawa + + Fixed typo in log message and define the message in message.h + * src/TimedHaltCommand.cc + * src/message.h + 2008-02-11 Tatsuhiro Tsujikawa Included RecoverableException.h to fix compilation error. diff --git a/src/TimedHaltCommand.cc b/src/TimedHaltCommand.cc index e29ceee6..54db6cfe 100644 --- a/src/TimedHaltCommand.cc +++ b/src/TimedHaltCommand.cc @@ -36,6 +36,7 @@ #include "DownloadEngine.h" #include "RequestGroupMan.h" #include "Logger.h" +#include "message.h" namespace aria2 { @@ -55,7 +56,7 @@ void TimedHaltCommand::preProcess() void TimedHaltCommand::process() { if(!_e->isHaltRequested()) { - logger->notice("%d minutes passed. Stopping application.", _interval/60); + logger->notice(MSG_TIME_HAS_PASSED, _interval/60); _e->requestHalt(); } } diff --git a/src/message.h b/src/message.h index f73b0dcd..330c116b 100644 --- a/src/message.h +++ b/src/message.h @@ -139,6 +139,7 @@ #define MSG_SOMETHING_MISSING_IN_TORRENT _("Missing %s in torrent metainfo.") #define MSG_NULL_TRACKER_RESPONSE _("Tracker returned null data.") #define MSG_WINSOCK_INIT_FAILD _("Windows socket library initialization failed") +#define MSG_TIME_HAS_PASSED _("%d minute(s) has passed. Stopping application.") #define EX_TIME_OUT _("Timeout.") #define EX_INVALID_CHUNK_SIZE _("Invalid chunk size.")