Change in osmocom-bb[master]: layer23/l1ctl.c: replace printf() calls by LOGP

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

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Sep 22 11:35:37 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11057 )

Change subject: layer23/l1ctl.c: replace printf() calls by LOGP
......................................................................

layer23/l1ctl.c: replace printf() calls by LOGP

Change-Id: I863fb668500b2010dfef7a63217255fd010c06d7
---
M src/host/layer23/src/common/l1ctl.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/host/layer23/src/common/l1ctl.c b/src/host/layer23/src/common/l1ctl.c
index 78e340b..eedfb93 100644
--- a/src/host/layer23/src/common/l1ctl.c
+++ b/src/host/layer23/src/common/l1ctl.c
@@ -194,7 +194,7 @@
 			if (meas->dsc > meas->ds_fail)
 				meas->dsc = meas->ds_fail;
 			if (meas->dsc < meas->ds_fail)
-				printf("LOSS counter for CCCH %d\n", meas->dsc);
+				LOGP(DL1C, LOGL_INFO, "LOSS counter for CCCH %d\n", meas->dsc);
 			if (meas->dsc > 0)
 				break;
 			meas->ds_fail = 0;
@@ -216,7 +216,7 @@
 			if (meas->s > meas->rl_fail)
 				meas->s = meas->rl_fail;
 			if (meas->s < meas->rl_fail)
-				printf("LOSS counter for ACCH %d\n", meas->s);
+				LOGP(DL1C, LOGL_NOTICE, "LOSS counter for ACCH %d\n", meas->s);
 			if (meas->s > 0)
 				break;
 			meas->rl_fail = 0;

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I863fb668500b2010dfef7a63217255fd010c06d7
Gerrit-Change-Number: 11057
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180922/3370460c/attachment.htm>


More information about the gerrit-log mailing list