From 5ad6ef771daf843f931cb6b6acde3f569813407b Mon Sep 17 00:00:00 2001 From: wangmenglan Date: Mon, 12 Jun 2023 19:47:58 +0800 Subject: 调整日志输出 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/tfe_ctrl_packet.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'common/src/tfe_ctrl_packet.cpp') diff --git a/common/src/tfe_ctrl_packet.cpp b/common/src/tfe_ctrl_packet.cpp index 67a1aae..1b470d1 100644 --- a/common/src/tfe_ctrl_packet.cpp +++ b/common/src/tfe_ctrl_packet.cpp @@ -410,21 +410,19 @@ void ctrl_packet_parser_dump(struct ctrl_pkt_parser *handler, void *logger) { if (handler) { - TFE_LOG_INFO(logger, "%s: tsync : %s", LOG_TAG_POLICY, handler->tsync); - TFE_LOG_INFO(logger, "%s: session_id : %lu", LOG_TAG_POLICY, handler->session_id); - TFE_LOG_INFO(logger, "%s: state : %s", LOG_TAG_POLICY, session_state_to_string(handler->state)); - TFE_LOG_INFO(logger, "%s: method : %s", LOG_TAG_POLICY, handler->method); - TFE_LOG_INFO(logger, "%s: tfe policy_id_num : %d", LOG_TAG_POLICY, handler->tfe_policy_id_num); - - for (int i = 0; i < handler->tfe_policy_id_num; i++) - { - TFE_LOG_INFO(logger, "%s: %d tfe policy_ids[%03lu]", LOG_TAG_POLICY, i, handler->tfe_policy_ids[i]); - } - TFE_LOG_INFO(logger, "%s: sce policy_id_num : %d", LOG_TAG_POLICY, handler->sce_policy_id_num); + TFE_LOG_INFO(logger, "%s: tsync: %s, session_id: %lu, state: %s, method: %s, tfe policy_id_num: %d, tfe policy_ids[%03lu], sce policy_id_num: %d", + LOG_TAG_POLICY, + handler->tsync, + handler->session_id, + session_state_to_string(handler->state), + handler->method, + handler->tfe_policy_id_num, + handler->tfe_policy_ids[0], + handler->sce_policy_id_num); for (int i = 0; i < handler->sce_policy_id_num; i++) { - TFE_LOG_INFO(logger, "%s: %d sce policy_ids[%03lu]", LOG_TAG_POLICY, i, handler->sce_policy_ids[i]); + TFE_LOG_INFO(logger, "%s: %d session %lu sce policy_ids[%03lu]", LOG_TAG_POLICY, i, handler->session_id, handler->sce_policy_ids[i]); } } } -- cgit v1.2.3