aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm/abis_nm.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-02-10 09:29:27 +0100
committerHarald Welte <laforge@gnumonks.org>2013-02-10 09:30:28 +0100
commit868a5c4782eeca54bff38f4c74704a12e3a7f8d4 (patch)
tree7c4a4db1d5bcf23f5d2a5cd5911e81334b534a6c /src/gsm/abis_nm.c
parent25bcb6cecef0af52599c6d220e226f937ab78b12 (diff)
turn abis_nm_debugp_foh() into a macro
this will avoid printing 'abis_nm.c' as the filename in the log, which is pretty useless during debugging. We want to know where abis_nm_debugp_foh() is being used from, not where it is implemented.
Diffstat (limited to 'src/gsm/abis_nm.c')
-rw-r--r--src/gsm/abis_nm.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index f3f3a423..bb7008b0 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -407,18 +407,6 @@ const struct value_string abis_nm_adm_state_names[] = {
{ 0, NULL }
};
-/*! \brief write a human-readable OML header to the debug log
- * \param[in] ss Logging sub-system
- * \param[in] foh A-bis OML FOM header
- */
-void abis_nm_debugp_foh(int ss, struct abis_om_fom_hdr *foh)
-{
- DEBUGP(ss, "OC=%s(%02x) INST=(%02x,%02x,%02x) ",
- get_value_string(abis_nm_obj_class_names, foh->obj_class),
- foh->obj_class, foh->obj_inst.bts_nr, foh->obj_inst.trx_nr,
- foh->obj_inst.ts_nr);
-}
-
static const enum abis_nm_chan_comb chcomb4pchan[] = {
[GSM_PCHAN_NONE] = 0xff,
[GSM_PCHAN_CCCH] = NM_CHANC_mainBCCH,
@@ -452,4 +440,14 @@ enum abis_nm_chan_comb abis_nm_pchan4chcomb(uint8_t chcomb)
return GSM_PCHAN_NONE;
}
+/* this is just for compatibility reasons, it is now a macro */
+#undef abis_nm_debugp_foh
+void abis_nm_debugp_foh(int ss, struct abis_om_fom_hdr *foh)
+{
+ DEBUGP(ss, "OC=%s(%02x) INST=(%02x,%02x,%02x) ",
+ get_value_string(abis_nm_obj_class_names, foh->obj_class),
+ foh->obj_class, foh->obj_inst.bts_nr, foh->obj_inst.trx_nr,
+ foh->obj_inst.ts_nr);
+}
+
/*! @} */