From 617610745a0d3df36a526690e4d97a6fd4a6ca3b Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Tue, 28 Nov 2023 10:14:13 +0100 Subject: [PATCH] ajb: replace DEBUG_LEVEL by RE_AUBUF_TRACE --- rem/aubuf/ajb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rem/aubuf/ajb.c b/rem/aubuf/ajb.c index 9b9243830..420e06728 100644 --- a/rem/aubuf/ajb.c +++ b/rem/aubuf/ajb.c @@ -158,7 +158,7 @@ struct ajb { uint64_t ts0; /**< reference timestamp */ uint64_t tr0; /**< reference time of arrival */ uint64_t tr00; /**< arrival of first packet */ -#if DEBUG_LEVEL >= 6 +#ifdef RE_AUBUF_TRACE struct { int32_t d; uint32_t buftime; @@ -189,7 +189,7 @@ static void destructor(void *arg) } -#if DEBUG_LEVEL >= 6 +#ifdef RE_AUBUF_TRACE static void plot_ajb(struct ajb *ajb, uint64_t tr) { uint32_t treal; @@ -216,7 +216,7 @@ static void plot_ajb(struct ajb *ajb, uint64_t tr) #endif -#if DEBUG_LEVEL >= 6 +#ifdef RE_AUBUF_TRACE void plot_underrun(struct ajb *ajb) { uint64_t tr; @@ -375,7 +375,7 @@ void ajb_calc(struct ajb *ajb, const struct auframe *af, size_t cur_sz) else ajb->as = AJB_GOOD; -#if DEBUG_LEVEL >= 6 +#ifdef RE_AUBUF_TRACE ajb->plot.d = d; ajb->plot.buftime = buftime; ajb->plot.bufmin = bufmin; @@ -438,7 +438,7 @@ enum ajb_state ajb_get(struct ajb *ajb, struct auframe *af) /* early adjustment of avbuftime */ ajb->avbuftime -= ptime; ajb->as = AJB_GOOD; -#if DEBUG_LEVEL >= 6 +#ifdef RE_AUBUF_TRACE ajb->plot.as = AJB_HIGH; plot_ajb(ajb, tmr_jiffies()); ajb->plot.as = AJB_GOOD; @@ -448,7 +448,7 @@ enum ajb_state ajb_get(struct ajb *ajb, struct auframe *af) /* early adjustment */ ajb->avbuftime += ptime; ajb->as = AJB_GOOD; -#if DEBUG_LEVEL >= 6 +#ifdef RE_AUBUF_TRACE ajb->plot.as = AJB_LOW; plot_ajb(ajb, tmr_jiffies()); ajb->plot.as = AJB_GOOD;