]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stconn: rename cs_get_data_name() to sc_get_data_name()
authorWilly Tarreau <w@1wt.eu>
Wed, 18 May 2022 16:00:31 +0000 (18:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 May 2022 17:33:34 +0000 (19:33 +0200)
Only used twice to dump stream debug info.

include/haproxy/conn_stream.h
src/stream.c

index ce0e673ba80cc7998beca96e9ca67cc3806da8c6..5e22fe7d0300e356e7f6e2ded255dced4e1c3bcc 100644 (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";
index 9c10db9698cbdded97d7e5ec6a51d200db4d34b5..a615c74781f1d36b57072845723d665ff4082732 100644 (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));