diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-04-01 16:11:39 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-04-04 17:54:37 +0200 |
commit | 113e30cb0639cefbafdad2862c5e69b0e17d9bf3 (patch) | |
tree | 753dbe0cc7a4e7fd09cb44e9da2db7be401916f7 /src/common/logging.c | |
parent | 091fcf147ae83d8daec92b2506d14e5e5ad35f80 (diff) |
use osmo_init_logging2() with proper talloc ctx
Completely drop bts_log_init(), call osmo_init_logging2() directly instead: all
callers of bts_log_init() passed NULL as category string, so all it ever did
was call osmo_init_logging(). The bts_log_info is already declared in the .h.
Here and there also define a proper talloc root context instead of using NULL.
Change-Id: Ic049f77bef74123b95350bcae182a468e0086b9c
Diffstat (limited to 'src/common/logging.c')
-rw-r--r-- | src/common/logging.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/common/logging.c b/src/common/logging.c index a4d30e6b..3315a019 100644 --- a/src/common/logging.c +++ b/src/common/logging.c @@ -148,13 +148,3 @@ const struct log_info bts_log_info = { .cat = bts_log_info_cat, .num_cat = ARRAY_SIZE(bts_log_info_cat), }; - -int bts_log_init(const char *category_mask) -{ - osmo_init_logging(&bts_log_info); - - if (category_mask) - log_parse_category_mask(osmo_stderr_target, category_mask); - - return 0; -} |