diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-12-02 15:30:02 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-12-09 17:59:58 +0100 |
commit | aa00f99be2e4cc64ede20d8c9548b83054696581 (patch) | |
tree | d18f900b36987bfaa990268b5f4902cf6a704810 /src/logging.c | |
parent | a65e99331a9699a09d2661b595c1723eea51873f (diff) |
Implement GSMTAP log target
This target wraps the to-be-logged string (With metadata) into a GSMTAP
packet and sends it to the configured destination address.
Change-Id: I9a7e72b8c9c6f6f2d76d1ea2332dcdee12394625
Diffstat (limited to 'src/logging.c')
-rw-r--r-- | src/logging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.c b/src/logging.c index 165d8229..1516a7d8 100644 --- a/src/logging.c +++ b/src/logging.c @@ -240,7 +240,7 @@ static const char* color(int subsys) return NULL; } -static const char* category_name(int subsys) +const char* log_category_name(int subsys) { if (subsys < osmo_log_info->num_cat) return osmo_log_info->cat[subsys].name; @@ -290,7 +290,7 @@ static void _output(struct log_target *target, unsigned int subsys, OSMO_SNPRINTF_RET(ret, rem, offset, len); } if (target->print_category) { - ret = snprintf(buf + offset, rem, "%s ", category_name(subsys)); + ret = snprintf(buf + offset, rem, "%s ", log_category_name(subsys)); if (ret < 0) goto err; OSMO_SNPRINTF_RET(ret, rem, offset, len); |