use English states in 'show hints' CLI command
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 13 Oct 2005 23:35:57 +0000 (23:35 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 13 Oct 2005 23:35:57 +0000 (23:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6777 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 3466a98..51b3370 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -3145,14 +3145,14 @@ static int handle_show_hints(int fd, int argc, char *argv[])
                watchers = 0;
                for (watcher = hint->callbacks; watcher; watcher = watcher->next)
                        watchers++;
-               ast_cli(fd, "   %-20.20s: %-20.20s  State %2d Watchers %2d\n",
+               ast_cli(fd, "   %-20.20s: %-20.20s  State:%-15.15s Watchers %2d\n",
                        ast_get_extension_name(hint->exten), ast_get_extension_app(hint->exten),
-                       hint->laststate, watchers);
+                       devstate2str(hint->laststate), watchers);
                num++;
                hint = hint->next;
        }
        ast_cli(fd, "----------------\n");
-       ast_cli(fd, "- %d hints registred\n", num);
+       ast_cli(fd, "- %d hints registered\n", num);
        ast_mutex_unlock(&hintlock);
        return RESULT_SUCCESS;
 }