log: check TDM_DLOG in tdm_log_enable_dlog