diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-02-25 17:57:37 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-02-26 11:50:15 +0100 |
commit | 36177c6b584ebb6e301d55e5bc5d9eb76f80c368 (patch) | |
tree | cff9264c7b9b4c9c000783e770c28224a84e1e91 /src | |
parent | 95e22668326491dc446e0d1d0092d2bda64950a5 (diff) |
tbf: Improve logging when TBF being allocated or no TBF avail
Change-Id: I68491fe2c643262e35b4d4f1ecac34afcf61848f
Diffstat (limited to 'src')
-rw-r--r-- | src/tbf_dl.cpp | 7 | ||||
-rw-r--r-- | src/tbf_ul.cpp | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 9562d86b..57044a1b 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -129,9 +129,8 @@ struct gprs_rlcmac_dl_tbf *tbf_alloc_dl_tbf(struct gprs_rlcmac_bts *bts, GprsMs OSMO_ASSERT(ms != NULL); - LOGP(DTBF, LOGL_DEBUG, "********** DL-TBF starts here **********\n"); - LOGP(DTBF, LOGL_INFO, "Allocating DL TBF: MS_CLASS=%d/%d\n", - ms_ms_class(ms), ms_egprs_ms_class(ms)); + LOGPMS(ms, DTBF, LOGL_DEBUG, "********** DL-TBF starts here **********\n"); + LOGPMS(ms, DTBF, LOGL_INFO, "Allocating DL TBF\n"); tbf = talloc(tall_pcu_ctx, struct gprs_rlcmac_dl_tbf); @@ -260,7 +259,7 @@ static int tbf_new_dl_assignment(struct gprs_rlcmac_bts *bts, GprsMs *ms, dl_tbf = tbf_alloc_dl_tbf(bts, ms, use_trx, ss); if (!dl_tbf) { - LOGP(DTBF, LOGL_NOTICE, "No PDCH resource\n"); + LOGPMS(ms, DTBF, LOGL_NOTICE, "No PDCH resource\n"); return -EBUSY; } diff --git a/src/tbf_ul.cpp b/src/tbf_ul.cpp index a5fc376a..8ef600b6 100644 --- a/src/tbf_ul.cpp +++ b/src/tbf_ul.cpp @@ -103,9 +103,8 @@ struct gprs_rlcmac_ul_tbf *tbf_alloc_ul_tbf(struct gprs_rlcmac_bts *bts, GprsMs OSMO_ASSERT(ms != NULL); - LOGP(DTBF, LOGL_DEBUG, "********** UL-TBF starts here **********\n"); - LOGP(DTBF, LOGL_INFO, "Allocating UL TBF: MS_CLASS=%d/%d\n", - ms_ms_class(ms), ms_egprs_ms_class(ms)); + LOGPMS(ms, DTBF, LOGL_DEBUG, "********** UL-TBF starts here **********\n"); + LOGPMS(ms, DTBF, LOGL_INFO, "Allocating UL TBF\n"); tbf = talloc(tall_pcu_ctx, struct gprs_rlcmac_ul_tbf); if (!tbf) @@ -151,7 +150,7 @@ gprs_rlcmac_ul_tbf *tbf_alloc_ul(struct gprs_rlcmac_bts *bts, GprsMs *ms, int8_t /* use multislot class of downlink TBF */ tbf = tbf_alloc_ul_tbf(bts, ms, use_trx, false); if (!tbf) { - LOGP(DTBF, LOGL_NOTICE, "No PDCH resource\n"); + LOGPMS(ms, DTBF, LOGL_NOTICE, "No PDCH resource\n"); /* FIXME: send reject */ return NULL; } |