From f268ea2b3c1ec5e3718dddea2aeaed0329eeaa24 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 7 Jul 2005 22:32:20 +0000 Subject: 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 --- pbx/pbx_spool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pbx') 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; -- cgit v1.2.3