mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
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
This commit is contained in:
2
loader.c
2
loader.c
@@ -365,7 +365,7 @@ static int __load_resource(const char *resource_name, const struct ast_config *c
|
||||
errors++;
|
||||
}
|
||||
if (errors) {
|
||||
ast_log(LOG_WARNING, "%d error(s) loading module %s, aborted\n", errors, fn);
|
||||
ast_log(LOG_WARNING, "%d error%s loading module %s, aborted\n", errors, (errors != 1) ? "s" : "", fn);
|
||||
dlclose(m->lib);
|
||||
free(m);
|
||||
ast_mutex_unlock(&modlock);
|
||||
|
||||
Reference in New Issue
Block a user