Index: main/devicestate.c =================================================================== --- main/devicestate.c (revision 294347) +++ main/devicestate.c (working copy) @@ -605,7 +605,8 @@ 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,