diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rate_ctr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rate_ctr.c b/src/rate_ctr.c index c27ac68e..72c6bb11 100644 --- a/src/rate_ctr.c +++ b/src/rate_ctr.c @@ -190,8 +190,11 @@ struct rate_ctr_group *rate_ctr_group_alloc(void *ctx, unsigned int size; struct rate_ctr_group *group; - if (rate_ctr_get_group_by_name_idx(desc->group_name_prefix, idx)) + if (rate_ctr_get_group_by_name_idx(desc->group_name_prefix, idx)) { + LOGP(DLGLOBAL, LOGL_ERROR, "counter group '%s' already exists for index %u\n", + desc->group_name_prefix, idx); return NULL; /* group already exist */ + } size = sizeof(struct rate_ctr_group) + desc->num_ctr * sizeof(struct rate_ctr); |