aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2015-12-17 12:53:05 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2015-12-17 13:09:18 +0100
commit3279780557f23837b0f30742c5680c8b44a33adb (patch)
tree13d0af9470e05ad2775248c1819f7748ec65ea6e /src
parentbded9841b56b407d9dc86483b8ea543231a7cfd8 (diff)
hnb-test: Add HNBAP category and reduce MAIN loglevel to INFO
Diffstat (limited to 'src')
-rw-r--r--src/tests/hnb-test.c9
-rw-r--r--src/tests/hnb-test.h1
2 files changed, 8 insertions, 2 deletions
diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index 8610604..cc5dfac 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -186,7 +186,7 @@ static int hnb_read_cb(struct osmo_fd *fd)
msgb_put(msg, rc);
if (flags & MSG_NOTIFICATION) {
- LOGP(DMAIN, LOGL_INFO, "Ignoring SCTP notification\n");
+ LOGP(DMAIN, LOGL_DEBUG, "Ignoring SCTP notification\n");
msgb_free(msg);
return 0;
}
@@ -289,10 +289,15 @@ static void hnb_send_register_req(struct hnb_test *hnb_test)
static const struct log_info_cat log_cat[] = {
[DMAIN] = {
- .name = "DMAIN", .loglevel = LOGL_DEBUG, .enabled = 1,
+ .name = "DMAIN", .loglevel = LOGL_INFO, .enabled = 1,
.color = "",
.description = "Main program",
},
+ [DHNBAP] = {
+ .name = "DHNBAP", .loglevel = LOGL_DEBUG, .enabled = 1,
+ .color = "",
+ .description = "Home Node B Application Part",
+ },
};
static const struct log_info hnb_test_log_info = {
diff --git a/src/tests/hnb-test.h b/src/tests/hnb-test.h
index 2042734..3fb0b94 100644
--- a/src/tests/hnb-test.h
+++ b/src/tests/hnb-test.h
@@ -11,6 +11,7 @@
enum {
DMAIN,
+ DHNBAP,
};