diff options
author | Max <msuraev@sysmocom.de> | 2016-03-18 15:29:54 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-03-18 15:29:54 +0100 |
commit | 3044a26d719dd6099e229137f6669ee17ffd48a1 (patch) | |
tree | ceceb5457a1870c6d3efecaa89a679cb0b8d02ae /src/osmo-bts-octphy | |
parent | b857f277045b0a5b1313f7d5ca655aeee22652c7 (diff) |
octphy: use octasic's routines for debug output
Diffstat (limited to 'src/osmo-bts-octphy')
-rw-r--r-- | src/osmo-bts-octphy/l1_if.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c index 3f6cfa94..51a1c616 100644 --- a/src/osmo-bts-octphy/l1_if.c +++ b/src/osmo-bts-octphy/l1_if.c @@ -53,6 +53,8 @@ #include <octphy/octpkt/octpkt_hdr.h> #define OCTVC1_RC2STRING_DECLARE #include <octphy/octvc1/octvc1_rc2string.h> +#define OCTVC1_ID2STRING_DECLARE +#include <octphy/octvc1/octvc1_id2string.h> #include <octphy/octvc1/gsm/octvc1_gsm_evt_swap.h> #define OCTVC1_OPT_DECLARE_DEFAULTS #include <octphy/octvc1/gsm/octvc1_gsm_default.h> @@ -258,7 +260,7 @@ int l1if_req_compl(struct octphy_hdl *fl1h, struct msgb *msg, uint32_t cmd_id = (type_r_cmdid >> cOCTVC1_MSG_ID_BIT_OFFSET) & cOCTVC1_MSG_ID_BIT_MASK; LOGP(DL1C, LOGL_DEBUG, "l1if_req_compl(msg_len=%u, cmd_id=%s, trans_id=%u)\n", - msgb_length(msg), get_value_string(octphy_cid_vals, cmd_id), + msgb_length(msg), octvc1_id2string(cmd_id), ntohl(msg_hdr->ulTransactionId)); /* push the two common headers in front */ @@ -1171,7 +1173,7 @@ static int rx_octvc1_resp(struct msgb *msg, uint32_t msg_id, uint32_t trans_id) int rc; LOGP(DL1C, LOGL_DEBUG, "rx_octvc1_resp(msg_id=%s, trans_id=%u)\n", - get_value_string(octphy_cid_vals, msg_id), trans_id); + octvc1_rc2string(msg_id), trans_id); /* check if the response is for the oldest (first) entry in wlc_list */ first = llist_first(&fl1h->wlc_list); |