aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logging.c')
-rw-r--r--src/logging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.c b/src/logging.c
index 1c3544fa..9e0b860b 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -958,7 +958,7 @@ int log_targets_reopen(void)
/*! Initialize the Osmocom logging core
* \param[in] inf Information regarding logging categories, could be NULL
- * \param[in] ctx talloc context for logging allocations
+ * \param[in] ctx UNUSED, only for legacy API compatibility
* \returns 0 in case of success, negative in case of error
*
* If inf is NULL then only library-internal categories are initialized.
@@ -967,7 +967,7 @@ int log_init(const struct log_info *inf, void *ctx)
{
int i;
- tall_log_ctx = talloc_named_const(ctx, 1, "logging");
+ tall_log_ctx = talloc_named_const(OTC_GLOBAL, 1, "logging");
if (!tall_log_ctx)
return -ENOMEM;