aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@netbook.jolly.ten>2011-08-18 10:56:13 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2011-10-03 13:00:59 +0200
commitead5d87b505d6c6a7839707fd6b559b678c00f33 (patch)
tree5044695bef97f91d54f9afcc56e6f37bb8e73b15
parentc86afe1716b8601092e4ccc648ffeb2bb5e729b9 (diff)
[WIP] Changed logging for easier debugging
I do not intend to apply this patch to master.
-rw-r--r--include/osmo-bts/logging.h2
-rw-r--r--src/common/logging.c15
-rw-r--r--src/common/oml.c3
3 files changed, 15 insertions, 5 deletions
diff --git a/include/osmo-bts/logging.h b/include/osmo-bts/logging.h
index 9252cb8f..ef641c2b 100644
--- a/include/osmo-bts/logging.h
+++ b/include/osmo-bts/logging.h
@@ -5,6 +5,7 @@
#include <osmocom/core/logging.h>
enum {
+ DSUM,
DRSL,
DOML,
DRLL,
@@ -16,7 +17,6 @@ enum {
DDSP,
DABIS,
DRTP,
- DSUM,
};
extern const struct log_info bts_log_info;
diff --git a/src/common/logging.c b/src/common/logging.c
index bd7eb73a..04ca6567 100644
--- a/src/common/logging.c
+++ b/src/common/logging.c
@@ -31,17 +31,23 @@
#include <osmo-bts/logging.h>
static struct log_info_cat bts_log_info_cat[] = {
+ [DSUM] = {
+ .name = "DSUM",
+ .description = "Summary",
+ .color = "\033[1;37m",
+ .enabled = 1, .loglevel = LOGL_DEBUG,
+ },
[DRSL] = {
.name = "DRSL",
.description = "A-bis Radio Siganlling Link (RSL)",
.color = "\033[1;35m",
- .enabled = 1, .loglevel = LOGL_INFO,
+ .enabled = 1, .loglevel = LOGL_DEBUG,
},
- [DOML] = {
+ [DOML] = {
.name = "DOML",
.description = "A-bis Network Management / O&M (NM/OML)",
.color = "\033[1;36m",
- .enabled = 1, .loglevel = LOGL_INFO,
+ .enabled = 1, .loglevel = LOGL_DEBUG,
},
[DRLL] = {
.name = "DRLL",
@@ -70,6 +76,7 @@ static struct log_info_cat bts_log_info_cat[] = {
.name = "DL1C",
.description = "Layer 1",
.loglevel = LOGL_INFO,
+ .color = "\033[0;31m",
.enabled = 1,
},
[DL1P] = {
@@ -87,7 +94,7 @@ static struct log_info_cat bts_log_info_cat[] = {
[DABIS] = {
.name = "DABIS",
.description = "A-bis Intput Subsystem",
- .enabled = 1, .loglevel = LOGL_NOTICE,
+ .enabled = 1, .loglevel = LOGL_DEBUG,
},
[DRTP] = {
.name = "DRTP",
diff --git a/src/common/oml.c b/src/common/oml.c
index e0a6b418..722be335 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -264,9 +264,12 @@ int oml_mo_fom_ack_nack(struct gsm_abis_mo *mo, uint8_t orig_msg_type,
return -ENOMEM;
if (cause) {
+ LOGP(DOML, LOGL_NOTICE, "Sending FOM NACK with cause %s.\n",
+ abis_nm_nack_cause_name(cause));
new_msg_type = orig_msg_type + 2;
msgb_tv_put(msg, NM_ATT_NACK_CAUSES, cause);
} else {
+ LOGP(DOML, LOGL_DEBUG, "Sending FOM ACK.\n");
new_msg_type = orig_msg_type + 1;
}