diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-08-24 15:15:36 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-09-17 09:58:27 +0000 |
commit | a91b2d9691014e4af59ee1a7236a35d877019579 (patch) | |
tree | 50ccf751b6f35732af68f42c2b59a5e000f6c507 | |
parent | ac84afa4095099731d5a6bafea0f2cc1a38e3f03 (diff) |
log: sysmo,lc15: tweak log about sapi_cmds queue
The osmo-bts log used to say this a lot:
DL1C <0006> oml.c:758 (bts=0,trx=0,ts=0,ss=1) End of queue encountered. Now empty? 1
- Move this to DEBUG level instead of NOTICE.
- Tweak wording and logic so it says one of:
[...] End of SAPI cmd queue encountered. Queue is now empty.
[...] End of SAPI cmd queue encountered. More pending.
Change-Id: I5a46c90d016cee9b50f32db2af568765d3cb74cc
-rw-r--r-- | src/osmo-bts-litecell15/oml.c | 9 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/oml.c | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/src/osmo-bts-litecell15/oml.c b/src/osmo-bts-litecell15/oml.c index a175af4b..634c2368 100644 --- a/src/osmo-bts-litecell15/oml.c +++ b/src/osmo-bts-litecell15/oml.c @@ -755,9 +755,12 @@ static void sapi_queue_dispatch(struct gsm_lchan *lchan, int status) talloc_free(cmd); if (end || llist_empty(&lchan->sapi_cmds)) { - LOGP(DL1C, LOGL_NOTICE, - "%s End of queue encountered. Now empty? %d\n", - gsm_lchan_name(lchan), llist_empty(&lchan->sapi_cmds)); + LOGP(DL1C, LOGL_DEBUG, + "%s End of SAPI cmd queue encountered.%s\n", + gsm_lchan_name(lchan), + llist_empty(&lchan->sapi_cmds) + ? " Queue is now empty." + : " More pending."); return; } diff --git a/src/osmo-bts-sysmo/oml.c b/src/osmo-bts-sysmo/oml.c index dea1c5e2..c1f1e0b2 100644 --- a/src/osmo-bts-sysmo/oml.c +++ b/src/osmo-bts-sysmo/oml.c @@ -764,9 +764,12 @@ static void sapi_queue_dispatch(struct gsm_lchan *lchan, int status) talloc_free(cmd); if (end || llist_empty(&lchan->sapi_cmds)) { - LOGP(DL1C, LOGL_NOTICE, - "%s End of queue encountered. Now empty? %d\n", - gsm_lchan_name(lchan), llist_empty(&lchan->sapi_cmds)); + LOGP(DL1C, LOGL_DEBUG, + "%s End of SAPI cmd queue encountered.%s\n", + gsm_lchan_name(lchan), + llist_empty(&lchan->sapi_cmds) + ? " Queue is now empty." + : " More pending."); return; } |