tbf: Include TBF state in tbf_name output

Sponsored-by: On-Waves ehf
diff --git a/src/tbf.h b/src/tbf.h
index 7172163..c0f976d 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -115,6 +115,7 @@
 	bool state_is(enum gprs_rlcmac_tbf_state rhs) const;
 	bool state_is_not(enum gprs_rlcmac_tbf_state rhs) const;
 	void set_state(enum gprs_rlcmac_tbf_state new_state);
+	const char *state_name() const;
 
 	struct msgb *create_dl_ass(uint32_t fn);
 	struct msgb *create_ul_ass(uint32_t fn);
@@ -255,6 +256,11 @@
 
 const char *tbf_name(gprs_rlcmac_tbf *tbf);
 
+inline const char *gprs_rlcmac_tbf::state_name() const
+{
+	return tbf_state_name[state];
+}
+
 inline void gprs_rlcmac_tbf::set_state(enum gprs_rlcmac_tbf_state new_state)
 {
 	LOGP(DRLCMAC, LOGL_DEBUG, "%s changes state from %s to %s\n",