[PATCH] osmo-bts[master]: Log channel combination name instead of number

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Wed Aug 10 16:18:12 UTC 2016


Review at  https://gerrit.osmocom.org/685

Log channel combination name instead of number

Change-Id: Ife11cfdb0f83d56ed61e66286a79b7c3a000cce5
---
M src/osmo-bts-sysmo/femtobts.h
M src/osmo-bts-sysmo/oml.c
2 files changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/85/685/1

diff --git a/src/osmo-bts-sysmo/femtobts.h b/src/osmo-bts-sysmo/femtobts.h
index 8be198f..9163ebb 100644
--- a/src/osmo-bts-sysmo/femtobts.h
+++ b/src/osmo-bts-sysmo/femtobts.h
@@ -83,7 +83,7 @@
 const struct value_string femtobts_tracef_docs[29];
 
 const struct value_string femtobts_tch_pl_names[15];
-
+const struct value_string femtobts_chcomb_names[8];
 const struct value_string femtobts_clksrc_names[10];
 
 const struct value_string femtobts_dir_names[6];
diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c
index e9a4794..86e2bee 100644
--- a/src/osmo-bts-sysmo/oml.c
+++ b/src/osmo-bts-sysmo/oml.c
@@ -504,9 +504,10 @@
 	cr->u8Tn = ts->nr;
 	cr->logChComb = pchan_to_logChComb[pchan];
 
-	DEBUGP(DL1C, "%s pchan=%s ts_connect_as(%s) logChComb=%d\n",
+	DEBUGP(DL1C, "%s pchan=%s ts_connect_as(%s) logChComb=%s\n",
 	       gsm_lchan_name(ts->lchan), gsm_pchan_name(ts->pchan),
-	       gsm_pchan_name(pchan), cr->logChComb);
+	       gsm_pchan_name(pchan), get_value_string(femtobts_chcomb_names,
+						       cr->logChComb));
 
 	return l1if_gsm_req_compl(fl1h, msg, cb, NULL);
 }

-- 
To view, visit https://gerrit.osmocom.org/685
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife11cfdb0f83d56ed61e66286a79b7c3a000cce5
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list