From 9190fd755a7c75dd22ec4c99102bb44699013b73 Mon Sep 17 00:00:00 2001 From: russell Date: Wed, 10 Nov 2010 12:46:27 +0000 Subject: Merged revisions 294500 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........ r294500 | russell | 2010-11-10 06:41:41 -0600 (Wed, 10 Nov 2010) | 7 lines 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.8@294501 f38db490-d61c-443f-a65b-d21fe96a405b --- main/devicestate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/devicestate.c b/main/devicestate.c index 3fee8fe1e..ab5225bea 100644 --- a/main/devicestate.c +++ b/main/devicestate.c @@ -605,7 +605,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, -- cgit v1.2.3