diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2014-08-15 18:11:57 +0200 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2014-08-15 18:28:45 +0200 |
commit | 08e57c836699d3e509ad2c9539ac3b70f9df09e4 (patch) | |
tree | 7807c40017aef37d6266a787bdda6df85d7e0429 /src/tbf.cpp | |
parent | 341689d6c51d8db73d8691e947c49ede792b6652 (diff) |
tbf: Include TBF state in tbf_name output
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r-- | src/tbf.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index fd25e8df..ccf73627 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -791,10 +791,12 @@ int gprs_rlcmac_tbf::extract_tlli(const uint8_t *data, const size_t len) const char *tbf_name(gprs_rlcmac_tbf *tbf) { - static char buf[40]; - snprintf(buf, sizeof(buf), "TBF(TFI=%d TLLI=0x%08x DIR=%s)", + static char buf[60]; + snprintf(buf, sizeof(buf), "TBF(TFI=%d TLLI=0x%08x DIR=%s STATE=%s)", tbf->m_tfi, tbf->m_tlli, - tbf->direction == GPRS_RLCMAC_UL_TBF ? "UL" : "DL"); + tbf->direction == GPRS_RLCMAC_UL_TBF ? "UL" : "DL", + tbf->state_name() + ); buf[sizeof(buf) - 1] = '\0'; return buf; } |