CLEANUP: stconn: rename cs_get_data_name() to sc_get_data_name()

Only used twice to dump stream debug info.
This commit is contained in:
Willy Tarreau 2022-05-18 18:00:31 +02:00
parent fa57cc7b20
commit f8d0ab54ec
2 changed files with 7 additions and 3 deletions

View File

@ -215,7 +215,11 @@ static inline struct check *sc_check(const struct stconn *cs)
return __objt_check(cs->app);
return NULL;
}
static inline const char *cs_get_data_name(const struct stconn *cs)
/* Returns the name of the application layer's name for the stconn,
* or "NONE" when none is attached.
*/
static inline const char *sc_get_data_name(const struct stconn *cs)
{
if (!cs->app_ops)
return "NONE";

View File

@ -3317,7 +3317,7 @@ static int stats_dump_full_strm_to_buffer(struct stconn *cs, struct stream *strm
conn_get_ctrl_name(conn),
conn_get_xprt_name(conn),
conn_get_mux_name(conn),
cs_get_data_name(scf),
sc_get_data_name(scf),
obj_type_name(conn->target),
obj_base_ptr(conn->target));
@ -3356,7 +3356,7 @@ static int stats_dump_full_strm_to_buffer(struct stconn *cs, struct stream *strm
conn_get_ctrl_name(conn),
conn_get_xprt_name(conn),
conn_get_mux_name(conn),
cs_get_data_name(scb),
sc_get_data_name(scb),
obj_type_name(conn->target),
obj_base_ptr(conn->target));