Skip to content

Commit 7a2eedd

Browse files
committed
MEDIUM: mux_quic: rename qmux traces to qcm
This patch is part of a renaming affecting mux_quic and related files. Naming "qcm" will become the new marker for common mux_quic stuffs, shared both on QUIC and QMux protocols. The final objective is to limit "qmux" naming for stuffs related to the new experimental protocol of the same name. The current patch renames mux_quic traces token to "qcm". This is the only change with external visible changes in this renaming serie. Thus, to preserve compatibility, trace source alias is set to the older name "qmux". This relies on the previous patch which introduced this new structure member.
1 parent 8547384 commit 7a2eedd

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

examples/traces.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ traces
1616
trace applet verbosity complete start now
1717
trace h3 start now
1818
trace quic start now
19-
trace qmux start now
19+
trace qcm start now
2020
trace peers start now
2121
.endif

src/haterm_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static const char *haterm_cfg_traces_str =
5656
"\ttrace h1 sink stderr level user start now verbosity minimal\n"
5757
"\ttrace h2 sink stderr level user start now verbosity minimal\n"
5858
"\ttrace h3 sink stderr level user start now verbosity minimal\n"
59-
"\ttrace qmux sink stderr level user start now verbosity minimal\n";
59+
"\ttrace qcm sink stderr level user start now verbosity minimal\n";
6060

6161
/* Very small API similar to buffer API to carefully build some strings */
6262
#define HBUF_NULL ((struct hbuf) { })

src/qcm_trace.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ static const struct name_desc qcm_trace_decoding[] = {
3535
};
3636

3737
struct trace_source trace_qcm = {
38-
.name = IST("qmux"),
38+
.name = IST("qcm"),
39+
.alias = IST("qmux"),
3940
.desc = "QUIC multiplexer",
4041
.arg_def = TRC_ARG1_CONN, /* TRACE()'s first argument is always a connection */
4142
.default_cb = qcm_trace,
@@ -129,7 +130,7 @@ static void qcm_trace_fill_ctx(struct trace_ctx *ctx, const struct trace_source
129130
}
130131

131132

132-
/* register qmux traces */
133+
/* register qcm traces */
133134
INITCALL1(STG_REGISTER, trace_register_source, TRACE_SOURCE);
134135

135136
static char *qcc_app_st_to_str(const enum qcc_app_st st)

0 commit comments

Comments
 (0)