From 113e30cb0639cefbafdad2862c5e69b0e17d9bf3 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 1 Apr 2018 16:11:39 +0200 Subject: 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 --- include/osmo-bts/logging.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/osmo-bts/logging.h') diff --git a/include/osmo-bts/logging.h b/include/osmo-bts/logging.h index 68f379c7..852c3836 100644 --- a/include/osmo-bts/logging.h +++ b/include/osmo-bts/logging.h @@ -25,8 +25,6 @@ enum { extern const struct log_info bts_log_info; -int bts_log_init(const char *category_mask); - /* LOGP with gsm_time prefix */ #define LOGPGT(ss, lvl, gt, fmt, args...) \ LOGP(ss, lvl, "%s " fmt, osmo_dump_gsmtime(gt), ## args) -- cgit v1.2.3