summaryrefslogtreecommitdiff
path: root/pbx
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-07-07 22:32:20 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-07-07 22:32:20 +0000
commitf268ea2b3c1ec5e3718dddea2aeaed0329eeaa24 (patch)
treea573b667aaa5d433b557f82b7ca439d79d1fd191 /pbx
parentf1a18b8066d100676b06cf7ee62c6a76c53b2530 (diff)
make CLI output use singular/plural when appropriate (bug #4654)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx')
-rwxr-xr-xpbx/pbx_spool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index 1087cb4b0..b4cc38142 100755
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -235,7 +235,7 @@ static void *attempt_thread(void *data)
ast_log(LOG_NOTICE, "Call failed to go through, reason %d\n", reason);
if (o->retries >= o->maxretries + 1) {
/* Max retries exceeded */
- ast_log(LOG_EVENT, "Queued call to %s/%s expired without completion after %d attempt(s)\n", o->tech, o->dest, o->retries - 1);
+ ast_log(LOG_EVENT, "Queued call to %s/%s expired without completion after %d attempt%s\n", o->tech, o->dest, o->retries - 1, ((o->retries - 1) != 1) ? "s" : "");
unlink(o->fn);
} else {
/* Notate that the call is still active */
@@ -294,7 +294,7 @@ static int scan_service(char *fn, time_t now, time_t atime)
now += o->retrytime;
return now;
} else {
- ast_log(LOG_EVENT, "Queued call to %s/%s expired without completion after %d attempt(s)\n", o->tech, o->dest, o->retries - 1);
+ ast_log(LOG_EVENT, "Queued call to %s/%s expired without completion after %d attempt%s\n", o->tech, o->dest, o->retries - 1, ((o->retries - 1) != 1) ? "s" : "");
free(o);
unlink(fn);
return 0;