summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/gsm322.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-11-15 09:52:26 +0100
committerHolger Freyther <holger@freyther.de>2017-11-27 09:48:39 +0000
commit42888ed9470b8217f4abc848ca8a077e17942066 (patch)
tree7a8842b542ed52dc2f3bd5fd8626f6634026d09e /src/host/layer23/src/mobile/gsm322.c
parent7b64e7dbe9b0d96e53bf2dec243e9af9b2e274ec (diff)
mobile: Switch from printf to LOGP statements
Add a mobile application logging category and replace printf with a LOGP. The code is sadly still using exit in the middle of handling. Change-Id: I71e7f6e6375a485b45bad76ada2be17b0901577d
Diffstat (limited to 'src/host/layer23/src/mobile/gsm322.c')
-rw-r--r--src/host/layer23/src/mobile/gsm322.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/host/layer23/src/mobile/gsm322.c b/src/host/layer23/src/mobile/gsm322.c
index 91729d87..6de8becc 100644
--- a/src/host/layer23/src/mobile/gsm322.c
+++ b/src/host/layer23/src/mobile/gsm322.c
@@ -3584,7 +3584,7 @@ static int gsm322_c_choose_cell(struct osmocom_ms *ms, struct msgb *msg)
gsm322_sync_to_cell(cs, NULL, 0);
cs->si = cs->list[cs->arfci].sysinfo;
if (!cs->si) {
- printf("No SI when ret.idle, please fix!\n");
+ LOGP(DCS, LOGL_FATAL, "No SI when ret.idle, please fix!\n");
exit(0L);
}
@@ -3670,7 +3670,7 @@ static int gsm322_c_conn_mode_1(struct osmocom_ms *ms, struct msgb *msg)
gsm_print_arfcn(cs->arfcn));
cs->si = cs->list[cs->arfci].sysinfo;
if (!cs->si) {
- printf("No SI when leaving idle, please fix!\n");
+ LOGP(DCS, LOGL_FATAL, "No SI when leaving idle, please fix!\n");
exit(0L);
}
cs->sync_retries = SYNC_RETRIES;
@@ -3700,7 +3700,7 @@ static int gsm322_c_conn_mode_2(struct osmocom_ms *ms, struct msgb *msg)
gsm_print_arfcn(cs->arfcn));
cs->si = cs->list[cs->arfci].sysinfo;
if (!cs->si) {
- printf("No SI when leaving idle, please fix!\n");
+ LOGP(DCS, LOGL_FATAL, "No SI when leaving idle, please fix!\n");
exit(0L);
}
cs->sync_retries = SYNC_RETRIES;
@@ -4637,7 +4637,7 @@ printf("%d time to sync again: %u\n", nb->arfcn, now + GSM58_READ_AGAIN - nb->wh
cs->arfci = arfcn2index(cs->arfcn);
cs->si = cs->list[cs->arfci].sysinfo;
if (!cs->si) {
- printf("No SI after neighbour scan, please fix!\n");
+ LOGP(DNB, LOGL_FATAL, "No SI after neighbour scan, please fix!\n");
exit(0L);
}
LOGP(DNB, LOGL_INFO, "Syncing back to serving cell\n");