diff options
author | Harald Welte <laforge@osmocom.org> | 2021-01-20 14:54:14 +0100 |
---|---|---|
committer | lynxis lazus <lynxis@fe80.eu> | 2021-01-20 16:42:33 +0000 |
commit | f294974e054c0df16c10c2adfe0f6d50fc6d5b1b (patch) | |
tree | 4c5ffdf6dea427abe55f7517aefd4bacd96fc5ed /src/gb/gprs_ns2_vc_fsm.c | |
parent | 718e37e5cc131ea48d69bfc22a506af4522a0b26 (diff) |
ns2: Unify logging context via log macros
Let's avoid open-coding the printing of log context and rather rely on
log macros to prefix each log line with the relevant context. This
helps log readability, log post processing whether by grep or more
sophisticated tools.
Change-Id: I946c0e77686d91efc5afb62031e1ac1033a9a586
Diffstat (limited to 'src/gb/gprs_ns2_vc_fsm.c')
-rw-r--r-- | src/gb/gprs_ns2_vc_fsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c index 5de86f52..fc2a86a8 100644 --- a/src/gb/gprs_ns2_vc_fsm.c +++ b/src/gb/gprs_ns2_vc_fsm.c @@ -793,8 +793,8 @@ int gprs_ns2_vc_rx(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed osmo_fsm_inst_dispatch(fi, GPRS_NS2_EV_RX_UNITDATA, msg); return 0; default: - LOGP(DLNS, LOGL_ERROR, "NSEI=%u Rx unknown NS PDU type %s\n", nsvc->nse->nsei, - get_value_string(gprs_ns_pdu_strings, nsh->pdu_type)); + LOGPFSML(fi, LOGL_ERROR, "NSEI=%u Rx unknown NS PDU type %s\n", nsvc->nse->nsei, + get_value_string(gprs_ns_pdu_strings, nsh->pdu_type)); return -EINVAL; } |