aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-20 00:34:01 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-20 00:34:01 +0000
commit0414f4361d8f4575a94ed0484edac9872c6df686 (patch)
tree748d42b0ec03f34e817bd1c0b5512fc125b56d32 /apps
parentc8ececdd93db8f3e8c94f86e63e8bc78d59cb5ee (diff)
add English device state output (bug #4733, with minor mod)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6174 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_queue.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 8ea0e8647..771794338 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -423,7 +423,7 @@ static void *changethread(void *data)
return NULL;
}
if (option_debug)
- ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d'\n", technology, loc, sc->state);
+ ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d' (%s)\n", technology, loc, sc->state, devstate2str(sc->state));
ast_mutex_lock(&qlock);
for (q = queues; q; q = q->next) {
ast_mutex_lock(&q->lock);
@@ -452,8 +452,6 @@ static void *changethread(void *data)
ast_mutex_unlock(&q->lock);
}
ast_mutex_unlock(&qlock);
- if (option_debug)
- ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d'\n", technology, loc, sc->state);
free(sc);
return NULL;
}