From: Boram Park Date: Sat, 4 Mar 2017 14:11:09 +0000 (+0900) Subject: log: enhance debugging log for DPMS change X-Git-Tag: accepted/tizen/3.0/common/20170308.133916~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F117349%2F1;p=platform%2Fcore%2Fuifw%2Flibtdm.git log: enhance debugging log for DPMS change Change-Id: I77ad1ebcc5b9f2b6434970446d429cdd26640fe5 --- diff --git a/src/tdm_output.c b/src/tdm_output.c index 7654873..1b85566 100644 --- a/src/tdm_output.c +++ b/src/tdm_output.c @@ -144,6 +144,8 @@ tdm_output_cb_status(tdm_output *output_backend, tdm_output_conn_status status, tdm_thread_cb_output_status output_status; tdm_error ret; + TDM_INFO("output(%d) %s", private_output->pipe, tdm_status_str(status)); + _tdm_output_update(output_backend, user_data); output_status.base.type = TDM_THREAD_CB_OUTPUT_STATUS; @@ -164,6 +166,8 @@ tdm_output_cb_status(tdm_output *output_backend, tdm_output_conn_status status, return; } + TDM_INFO("output(%d) %s", private_output->pipe, tdm_status_str(status)); + if (!tdm_thread_is_running()) _tdm_output_update(output_backend, user_data); @@ -1014,6 +1018,8 @@ tdm_output_cb_dpms(tdm_output *output_backend, tdm_output_dpms dpms, void *user_ private_output->current_dpms_value = dpms; + TDM_INFO("output(%d) dpms %s", private_output->pipe, tdm_dpms_str(dpms)); + value.u32 = dpms; tdm_output_call_change_handler_internal(private_output, &private_output->change_handler_list_main, @@ -1059,6 +1065,7 @@ tdm_output_set_dpms(tdm_output *output, tdm_output_dpms dpms_value) if (!func_output->output_set_dpms) { _pthread_mutex_unlock(&private_display->lock); private_output->current_dpms_value = dpms_value; + TDM_INFO("output(%d) dpms %s", private_output->pipe, tdm_dpms_str(dpms_value)); TDM_WRN("not implemented!!"); return TDM_ERROR_NONE; } @@ -1082,6 +1089,7 @@ tdm_output_set_dpms(tdm_output *output, tdm_output_dpms dpms_value) tdm_value value; private_output->current_dpms_value = dpms_value; + TDM_INFO("output(%d) dpms %s", private_output->pipe, tdm_dpms_str(dpms_value)); value.u32 = dpms_value; tdm_output_call_change_handler_internal(private_output, diff --git a/src/tdm_vblank.c b/src/tdm_vblank.c index 1ecb5ca..d92e902 100644 --- a/src/tdm_vblank.c +++ b/src/tdm_vblank.c @@ -305,7 +305,7 @@ _tdm_vblank_cb_output_change(tdm_output *output, tdm_output_change_type type, case TDM_OUTPUT_CHANGE_DPMS: if (private_vblank->dpms == value.u32) break; - VIN("dpms %s", tdm_dpms_str(value.u32)); + VDB("dpms %s", tdm_dpms_str(value.u32)); private_vblank->dpms = value.u32; private_vblank->check_HW_or_SW = 1; if (private_vblank->dpms != TDM_OUTPUT_DPMS_ON) { @@ -316,7 +316,7 @@ _tdm_vblank_cb_output_change(tdm_output *output, tdm_output_change_type type, } break; case TDM_OUTPUT_CHANGE_CONNECTION: - VIN("output %s", tdm_status_str(value.u32)); + VDB("output %s", tdm_status_str(value.u32)); if (value.u32 == TDM_OUTPUT_CONN_STATUS_DISCONNECTED) _tdm_vblank_free_HW_wait(private_vblank, 0, 0); break;