Change in osmocom-bb[master]: virt_phy: tweak log levels

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/.

osmith gerrit-no-reply at lists.osmocom.org
Fri May 15 06:58:32 UTC 2020


Hello laforge,

I'd like you to do a code review. Please visit

    https://gerrit.osmocom.org/c/osmocom-bb/+/18266

to review the following change.


Change subject: virt_phy: tweak log levels
......................................................................

virt_phy: tweak log levels

Related: SYS#4822
Change-Id: Ia7e368cda8e016a4141b21e5219697420a503124
---
M src/host/virt_phy/src/l1ctl_sap.c
M src/host/virt_phy/src/logging.c
M src/host/virt_phy/src/virt_prim_data.c
M src/host/virt_phy/src/virt_prim_pm.c
4 files changed, 11 insertions(+), 11 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/66/18266/1

diff --git a/src/host/virt_phy/src/l1ctl_sap.c b/src/host/virt_phy/src/l1ctl_sap.c
index 0ff5412..bab6259 100644
--- a/src/host/virt_phy/src/l1ctl_sap.c
+++ b/src/host/virt_phy/src/l1ctl_sap.c
@@ -286,7 +286,7 @@
 
 	rsl_dec_chan_nr(ul->chan_nr, &rsl_chantype, &subslot, &timeslot);
 
-	LOGPMS(DL1C, LOGL_INFO, ms, "Rx L1CTL_DM_EST_REQ (chan_nr=0x%02x, arfcn=%u, tn=%u, ss=%u)\n",
+	LOGPMS(DL1C, LOGL_DEBUG, ms, "Rx L1CTL_DM_EST_REQ (chan_nr=0x%02x, arfcn=%u, tn=%u, ss=%u)\n",
 		ul->chan_nr, ntohs(est_req->h0.band_arfcn), timeslot, subslot);
 
 	OSMO_ASSERT(est_req->h == 0); /* we don't do hopping */
diff --git a/src/host/virt_phy/src/logging.c b/src/host/virt_phy/src/logging.c
index aa3b88a..75f0c9a 100644
--- a/src/host/virt_phy/src/logging.c
+++ b/src/host/virt_phy/src/logging.c
@@ -70,28 +70,28 @@
 		.description = "Layer 1 Control",
 		.color = "\033[1;31m",
 		.enabled = 1,
-		.loglevel = LOGL_DEBUG,
+		.loglevel = LOGL_INFO,
 	},
 	[DL1P] = {
 		.name = "DL1P",
 		.description = "Layer 1 Data",
 		.color = "\033[1;31m",
 		.enabled = 1,
-		.loglevel = LOGL_DEBUG,
+		.loglevel = LOGL_INFO,
 	},
 	[DVIRPHY] = {
 		.name = "DVIRPHY",
 		.description = "Virtual Layer 1 Interface",
 		.color = "\033[1;31m",
 		.enabled = 1,
-		.loglevel = LOGL_DEBUG,
+		.loglevel = LOGL_INFO,
 	},
 	[DMAIN] = {
 		.name = "DMAIN",
 		.description = "Main Program / Data Structures",
 		.color = "\033[1;32m",
 		.enabled = 1,
-		.loglevel = LOGL_DEBUG,
+		.loglevel = LOGL_INFO,
 	},
 };
 
diff --git a/src/host/virt_phy/src/virt_prim_data.c b/src/host/virt_phy/src/virt_prim_data.c
index 65368b8..656ff80 100644
--- a/src/host/virt_phy/src/virt_prim_data.c
+++ b/src/host/virt_phy/src/virt_prim_data.c
@@ -74,7 +74,7 @@
 	rsl_dec_chan_nr(ul->chan_nr, &rsl_chantype, &subslot, &timeslot);
 	msg->l2h = data_ind->data;
 
-	LOGPMS(DL1P, LOGL_INFO, ms, "Rx L1CTL_DATA_REQ (chan_nr=0x%02x, link_id=0x%02x) %s\n",
+	LOGPMS(DL1P, LOGL_DEBUG, ms, "Rx L1CTL_DATA_REQ (chan_nr=0x%02x, link_id=0x%02x) %s\n",
 		ul->chan_nr, ul->link_id, osmo_hexdump(msg->l2h, msgb_l2len(msg)));
 
 	virt_l1_sched_schedule(ms, msg, fn_sched, timeslot, &virt_l1_sched_handler_cb);
@@ -106,7 +106,7 @@
 
 	memcpy(l1di->data, msgb_data(msg), msgb_length(msg));
 
-	LOGPMS(DL1P, LOGL_INFO, ms, "TX L1CTL_DATA_IND (link_id=0x%02x) %s\n", link_id,
+	LOGPMS(DL1P, LOGL_DEBUG, ms, "TX L1CTL_DATA_IND (link_id=0x%02x) %s\n", link_id,
 		 osmo_hexdump(msgb_data(msg), msgb_length(msg)));
 	l1ctl_sap_tx_to_l23_inst(ms, l1ctl_msg);
 }
@@ -124,6 +124,6 @@
 	struct msgb * l1ctl_msg;
 	l1ctl_msg = l1ctl_create_l2_msg(L1CTL_DATA_CONF, fn, snr, arfcn);
 	/* send confirm to layer23 */
-	LOGPMS(DL1P, LOGL_INFO, ms, "Tx L1CTL_DATA_CONF\n");
+	LOGPMS(DL1P, LOGL_DEBUG, ms, "Tx L1CTL_DATA_CONF\n");
 	l1ctl_sap_tx_to_l23_inst(ms, l1ctl_msg);
 }
diff --git a/src/host/virt_phy/src/virt_prim_pm.c b/src/host/virt_phy/src/virt_prim_pm.c
index 561f6ce..08d9b05 100644
--- a/src/host/virt_phy/src/virt_prim_pm.c
+++ b/src/host/virt_phy/src/virt_prim_pm.c
@@ -89,7 +89,7 @@
 	l1s->pm.req.band_arfcn_from = ntohs(pm_req->range.band_arfcn_from);
 	l1s->pm.req.band_arfcn_to = ntohs(pm_req->range.band_arfcn_to);
 
-	LOGPMS(DL1C, LOGL_INFO, ms, "Rx L1CTL_PM_REQ TYPE=%u, FROM=%d, TO=%d\n",
+	LOGPMS(DL1C, LOGL_DEBUG, ms, "Rx L1CTL_PM_REQ TYPE=%u, FROM=%d, TO=%d\n",
 		pm_req->type, l1s->pm.req.band_arfcn_from, l1s->pm.req.band_arfcn_to);
 
 	/* generating the response will happen delayed in a timer, as otherwise
@@ -119,14 +119,14 @@
 		}
 		/* no more space to hold more pm info in msgb, flush to l23 */
 		if (msgb_tailroom(resp_msg) < sizeof(*pm_conf)) {
-			LOGPMS(DL1C, LOGL_INFO, ms, "Tx L1CTL_PM_CONF\n");
+			LOGPMS(DL1C, LOGL_DEBUG, ms, "Tx L1CTL_PM_CONF\n");
 			l1ctl_sap_tx_to_l23_inst(ms, resp_msg);
 			resp_msg = l1ctl_msgb_alloc(L1CTL_PM_CONF);
 		}
 	}
 	/* transmit the remaining part of pm response to l23 */
 	if (resp_msg) {
-		LOGPMS(DL1C, LOGL_INFO, ms, "Tx L1CTL_PM_CONF\n");
+		LOGPMS(DL1C, LOGL_DEBUG, ms, "Tx L1CTL_PM_CONF\n");
 		l1ctl_sap_tx_to_l23_inst(ms, resp_msg);
 	}
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/18266
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ia7e368cda8e016a4141b21e5219697420a503124
Gerrit-Change-Number: 18266
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200515/5ee37753/attachment.htm>


More information about the gerrit-log mailing list