- Formatting

- Don't name internal static functions ast_
- Expand the buffer for variables, since I almost always hit the limit on my channels


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2006-06-26 08:40:30 +00:00
parent 9863bb982c
commit 71411c6bae

View File

@@ -58,7 +58,7 @@ static char *desc =
LOCAL_USER_DECL; LOCAL_USER_DECL;
static int ast_serialize_showchan(struct ast_channel *c, char *buf, size_t size) static int serialize_showchan(struct ast_channel *c, char *buf, size_t size)
{ {
struct timeval now; struct timeval now;
long elapsed_seconds = 0; long elapsed_seconds = 0;
@@ -135,27 +135,25 @@ static int ast_serialize_showchan(struct ast_channel *c, char *buf, size_t size)
static int dumpchan_exec(struct ast_channel *chan, void *data) static int dumpchan_exec(struct ast_channel *chan, void *data)
{ {
int res=0;
struct localuser *u; struct localuser *u;
char vars[1024]; char vars[BUFSIZ * 4];
char info[1024]; char info[1024];
int level = 0; int level = 0;
static char *line = "================================================================================"; static char *line = "================================================================================";
LOCAL_USER_ADD(u); LOCAL_USER_ADD(u);
if (!ast_strlen_zero(data)) { if (!ast_strlen_zero(data))
level = atoi(data); level = atoi(data);
}
pbx_builtin_serialize_variables(chan, vars, sizeof(vars)); pbx_builtin_serialize_variables(chan, vars, sizeof(vars));
ast_serialize_showchan(chan, info, sizeof(info)); serialize_showchan(chan, info, sizeof(info));
if (option_verbose >= level) if (option_verbose >= level)
ast_verbose("\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n", chan->name, line, info, vars, line); ast_verbose("\nDumping Info For Channel: %s:\n%s\nInfo:\n%s\nVariables:\n%s%s\n", chan->name, line, info, vars, line);
LOCAL_USER_REMOVE(u); LOCAL_USER_REMOVE(u);
return res; return 0;
} }
static int unload_module(void *mod) static int unload_module(void *mod)