diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-27 10:29:17 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-27 10:40:25 +0200 |
commit | b43bc048eb4c2c0855d4d7c4ad6b0b3c14e50eb2 (patch) | |
tree | bd413e31f3b84238287a01d19128809433b93b2c /src/application.c | |
parent | ea19c978160af32e4fee8001f5308518bcf4fd4c (diff) |
logging: introduce library-internal logging categories
We do this by using a trick: library-internal log categories use
negative subsystem numbers, which are converted into positive
array indexes at the time of logging.
library-internal log categories need to be knwo at compile-time,
while application-specified categories now are of unlimited number,
as they are dynamically allocated.
Diffstat (limited to 'src/application.c')
-rw-r--r-- | src/application.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application.c b/src/application.c index 5f8f4471..b7e943d7 100644 --- a/src/application.c +++ b/src/application.c @@ -44,7 +44,7 @@ void osmo_init_ignore_signals(void) int osmo_init_logging(const struct log_info *log_info) { - log_init(log_info); + log_init(log_info, NULL); osmo_stderr_target = log_target_create_stderr(); if (!osmo_stderr_target) return -1; |