From: Russell Bryant Date: Wed, 10 Nov 2010 12:41:41 +0000 (+0000) Subject: Improve a debug message to be more readable and consistent. X-Git-Tag: 1.6.2.15-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03edd1af2867796c8070f8eefaf0712349266891;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@294500 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/devicestate.c b/main/devicestate.c index 49b7e1efc3..edd378a83f 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,