From 1c30af0622cf32830599829d2256958c06e223be Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 20 Jul 2005 00:34:01 +0000 Subject: add English device state output (bug #4733, with minor mod) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6174 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps') 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; } -- cgit v1.2.3