Add some spacing.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100094 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2008-01-24 03:30:56 +00:00
parent 9eff881130
commit 15515ec671

View File

@@ -206,10 +206,12 @@ static char *handle_cli_core_show_channeltypes(struct ast_cli_entry *e, int cmd,
ast_cli(a->fd, FORMAT, "Type", "Description", "Devicestate", "Indications", "Transfer"); ast_cli(a->fd, FORMAT, "Type", "Description", "Devicestate", "Indications", "Transfer");
ast_cli(a->fd, FORMAT, "----------", "-----------", "-----------", "-----------", "--------"); ast_cli(a->fd, FORMAT, "----------", "-----------", "-----------", "-----------", "--------");
if (AST_RWLIST_RDLOCK(&channels)) { if (AST_RWLIST_RDLOCK(&channels)) {
ast_log(LOG_WARNING, "Unable to lock channel list\n"); ast_log(LOG_WARNING, "Unable to lock channel list\n");
return CLI_FAILURE; return CLI_FAILURE;
} }
AST_LIST_TRAVERSE(&backends, cl, list) { AST_LIST_TRAVERSE(&backends, cl, list) {
ast_cli(a->fd, FORMAT, cl->tech->type, cl->tech->description, ast_cli(a->fd, FORMAT, cl->tech->type, cl->tech->description,
(cl->tech->devicestate) ? "yes" : "no", (cl->tech->devicestate) ? "yes" : "no",
@@ -217,8 +219,11 @@ static char *handle_cli_core_show_channeltypes(struct ast_cli_entry *e, int cmd,
(cl->tech->transfer) ? "yes" : "no"); (cl->tech->transfer) ? "yes" : "no");
count_chan++; count_chan++;
} }
AST_RWLIST_UNLOCK(&channels); AST_RWLIST_UNLOCK(&channels);
ast_cli(a->fd, "----------\n%d channel drivers registered.\n", count_chan); ast_cli(a->fd, "----------\n%d channel drivers registered.\n", count_chan);
return CLI_SUCCESS; return CLI_SUCCESS;
#undef FORMAT #undef FORMAT