mk mk debugging output plumbable by using file:lineno not file[lineno] Reference: /n/sources/patch/applied/mkdbgplumb Date: Mon Dec 17 03:42:40 CET 2007 Signed-off-by: quanstro@quanstro.net --- /sys/src/cmd/mk/rule.c Mon Dec 17 03:41:35 2007 +++ /sys/src/cmd/mk/rule.c Mon Dec 17 03:41:33 2007 @@ -75,7 +75,7 @@ { Bprint(&bout, "%s: start=%p\n", s, r); for(; r; r = r->next){ - Bprint(&bout, "\tRule %p: %s[%d] attr=%x next=%p chain=%p alltarget='%s'", + Bprint(&bout, "\tRule %p: %s:%d attr=%x next=%p chain=%p alltarget='%s'", r, r->file, r->line, r->attr, r->next, r->chain, wtos(r->alltargets, ' ')); if(r->prog) Bprint(&bout, " prog='%s'", r->prog);