diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-27 14:00:03 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-27 23:17:35 +0200 |
commit | 9fe1652212a84815e02d37f58d96192a1e6194d2 (patch) | |
tree | b1256df0f71019882bb41e68f44c02bf799179cd /src/logging.c | |
parent | 1f0b8c26f78a71b1dd948c464f15d0166e706792 (diff) |
logging: make sure to add the internal categories, as intended
Diffstat (limited to 'src/logging.c')
-rw-r--r-- | src/logging.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c index 8fd2e005..c05b523d 100644 --- a/src/logging.c +++ b/src/logging.c @@ -637,4 +637,10 @@ int log_init(const struct log_info *inf, void *ctx) } /* copy over the library part */ + for (i = 0; i < ARRAY_SIZE(internal_cat); i++) { + memcpy(&osmo_log_info->cat[inf->num_cat+i], + &internal_cat[i], sizeof(struct log_info_cat)); + } + + return 0; } |