summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-10 15:16:22 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-10 15:16:22 +0000
commitd28702336de31dbc06363913fdc3dd3df7fe9550 (patch)
tree24b310722223c85169c47d1e87402241f01df502 /src
parent8e64c16ecbf02f9ed28e7911dd3a67f6e75d1056 (diff)
downloads6-rc-d28702336de31dbc06363913fdc3dd3df7fe9550.tar.xz
More debug instructions
Diffstat (limited to 'src')
-rw-r--r--src/s6-rc/s6-rc-compile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c
index 9dad40f..7fb6d81 100644
--- a/src/s6-rc/s6-rc-compile.c
+++ b/src/s6-rc/s6-rc-compile.c
@@ -608,10 +608,12 @@ static void resolve_deps (common_t const *me, unsigned int nlong, unsigned int n
register nameinfo_t const *p ;
avltree_search(&names_map, data.s + indices[me->depindex + j], &id) ;
p = genalloc_s(nameinfo_t, &nameinfo) + id ;
+ DBG("resolve_deps: %s depends on %s", data.s + me->name, data.s + p->pos) ;
switch (p->type)
{
case SVTYPE_ONESHOT :
bitarray_set(sarray, nlong + p->i) ;
+ DBG("resolve_deps: %s is a oneshot, setting bit %u in sarray for %s", data.s + p->pos, nlong + p->i, data.s + me->name) ;
if (verbosity >= 4)
{
char fmt[UINT_FMT] ;
@@ -621,6 +623,7 @@ static void resolve_deps (common_t const *me, unsigned int nlong, unsigned int n
break ;
case SVTYPE_LONGRUN :
bitarray_set(sarray, p->i) ;
+ DBG("resolve_deps: %s is a longrun, setting bit %u in sarray for %s", data.s + p->pos, p->i, data.s + me->name) ;
if (verbosity >= 4)
{
char fmt[UINT_FMT] ;
@@ -630,6 +633,7 @@ static void resolve_deps (common_t const *me, unsigned int nlong, unsigned int n
break ;
case SVTYPE_BUNDLE :
bitarray_or(sarray, sarray, barray + p->i * nbits, n) ;
+ DBG("resolve_deps: %s is a bundle, ORing barray[%u] into sarray for %s", data.s + p->pos, p->i, data.s + me->name) ;
if (verbosity >= 4)
{
char fmt[UINT_FMT] ;