diff --git a/test/eierpecken.c b/test/eierpecken.c index d0a56f8..439e9b1 100644 --- a/test/eierpecken.c +++ b/test/eierpecken.c @@ -1085,12 +1085,12 @@ _peck_dispatch_ei(struct peck *peck, int lineno) } void -_peck_dispatch_until_stable(struct peck *peck, int lineno) +_peck_dispatch_until_stable(struct peck *peck, const char *func, int lineno) { int eis = 0, ei = 0; int loop_counter = 0; - log_debug(peck, "dispatching until stable (line %d) {\n", lineno); + log_debug(peck, "dispatching until stable (%s:%d) {\n", func, lineno); peck_indent(peck); /* we go two dispatch loops for both ei and EIS before we say it's @@ -1108,7 +1108,7 @@ _peck_dispatch_until_stable(struct peck *peck, int lineno) } while (ei <= 2 || eis <= 2); peck_dedent(peck); - log_debug(peck, "}\n", lineno); + log_debug(peck, "} stable (%s:%d)\n", func, lineno); } void diff --git a/test/eierpecken.h b/test/eierpecken.h index 406b816..88e0d14 100644 --- a/test/eierpecken.h +++ b/test/eierpecken.h @@ -257,10 +257,10 @@ peck_unref(struct peck *peck); * pending that are not processed by the current behaviors. */ void -_peck_dispatch_until_stable(struct peck *peck, int lineno); +_peck_dispatch_until_stable(struct peck *peck, const char *func, int lineno); #define peck_dispatch_until_stable(_p) \ - _peck_dispatch_until_stable((_p), __LINE__) + _peck_dispatch_until_stable((_p), __func__, __LINE__) /** * Discard all pending events.