aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-11-10 12:41:41 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-11-10 12:41:41 +0000
commit8026f6d504f14a12e13723e97beadb3df47142f8 (patch)
tree2e8f8158f3024373ad99f95649ea1cde9a54351b
parent6c40c45239be5556b9114cc6366c445eafe2127e (diff)
Improve a debug message to be more readable and consistent.
(closes issue #18282) Reported by: klaus3000 Patches: ast_devstate2str-patch.txt uploaded by klaus3000 (license 65) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@294500 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/devicestate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/devicestate.c b/main/devicestate.c
index 49b7e1efc..edd378a83 100644
--- a/main/devicestate.c
+++ b/main/devicestate.c
@@ -609,7 +609,8 @@ static void process_collection(const char *device, struct change_collection *col
state = ast_devstate_aggregate_result(&agg);
- ast_debug(1, "Aggregate devstate result is %d\n", state);
+ ast_debug(1, "Aggregate devstate result is '%s' for '%s'\n",
+ ast_devstate2str(state), device);
event = ast_event_get_cached(AST_EVENT_DEVICE_STATE,
AST_EVENT_IE_DEVICE, AST_EVENT_IE_PLTYPE_STR, device,