rename xxx_tostring() -> xxx_to_str()
This commit is contained in:
@@ -847,7 +847,7 @@ static inline struct session *session_manager_new_tcp_session(struct session_man
|
||||
session_update_tcp_state(sess, tcp_layer, curr_dir);
|
||||
|
||||
char buffer[128] = {0};
|
||||
tuple6_tostring(session_get0_key(sess), buffer, sizeof(buffer));
|
||||
tuple6_to_str(session_get0_key(sess), buffer, sizeof(buffer));
|
||||
SESSION_LOG_DEBUG("session new: %lu %s", session_get_id(sess), buffer);
|
||||
SESSION_LOG_DEBUG("TCP %s received, session %lu init -> opening", (curr_dir == SESSION_DIR_C2S ? "SYN" : "SYNACK"), session_get_id(sess));
|
||||
|
||||
@@ -900,7 +900,7 @@ static inline struct session *session_manager_new_udp_session(struct session_man
|
||||
session_table_add_session(mgr->udp_sess_table, key, sess);
|
||||
|
||||
char buffer[128] = {0};
|
||||
tuple6_tostring(session_get0_key(sess), buffer, sizeof(buffer));
|
||||
tuple6_to_str(session_get0_key(sess), buffer, sizeof(buffer));
|
||||
SESSION_LOG_DEBUG("session new: %lu %s", session_get_id(sess), buffer);
|
||||
SESSION_LOG_DEBUG("UDP %s first packet received, session %lu init -> opening", (curr_dir == SESSION_DIR_C2S ? "C2S" : "S2C"), session_get_id(sess));
|
||||
|
||||
@@ -981,7 +981,7 @@ static inline void session_manager_free_session(struct session_manager *mgr, str
|
||||
{
|
||||
if (sess)
|
||||
{
|
||||
SESSION_LOG_DEBUG("%s, session %lu closing -> closed", session_closing_reason_tostring(session_get_closing_reason(sess)), session_get_id(sess));
|
||||
SESSION_LOG_DEBUG("%s, session %lu closing -> closed", session_closing_reason_to_str(session_get_closing_reason(sess)), session_get_id(sess));
|
||||
session_manager_update_session_to_closed(mgr, sess);
|
||||
if (session_get_type(sess) == SESSION_TYPE_TCP)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user