Skip to content

Commit

Permalink
mem/hp: remove useless debugging
Browse files Browse the repository at this point in the history
(cherry picked from commit 9db6556)
  • Loading branch information
razvancrainea committed Jul 3, 2019
1 parent d14a4ac commit 253d146
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mem/hp_malloc_dyn.h
Expand Up @@ -671,10 +671,8 @@ void *hp_rpm_malloc_unsafe(struct hp_block *hpb, unsigned long size,
return NULL;

found:
LM_INFO("XXX: f: used=%ld rused=%ld\n", get_stat_val(rpm_rused), get_stat_val(rpm_rused));
hp_frag_detach(hpb, frag);
update_stats_rpm_frag_detach(frag);
LM_INFO("XXX: a: used=%ld rused=%ld\n", get_stat_val(rpm_rused), get_stat_val(rpm_rused));

#ifndef STATISTICS
hpb->used += frag->size;
Expand Down Expand Up @@ -856,11 +854,9 @@ void *hp_rpm_malloc(struct hp_block *hpb, unsigned long size,
return NULL;

found:
LM_INFO("XXX: f: used=%ld rused=%ld\n", get_stat_val(rpm_rused), get_stat_val(rpm_rused));
hp_frag_detach(hpb, frag);

update_stats_rpm_frag_detach(frag);
LM_INFO("XXX: a: used=%ld rused=%ld\n", get_stat_val(rpm_rused), get_stat_val(rpm_rused));

#if defined(DBG_MALLOC) || defined(STATISTICS)
hpb->used += (frag)->size;
Expand Down

0 comments on commit 253d146

Please sign in to comment.