X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=infile.c;h=b8e01bcfc6f6ad200a19741f70bcfa14a2f7dd1a;hb=0b6c5209fc86b652fd428616b941e5b8f73b7f32;hp=a8f0558cfaa67e5d2d94257a1b8cb8409e5e396d;hpb=066ebb56423371b95b755803cbaec910a035b0ee;p=innduct.git diff --git a/infile.c b/infile.c index a8f0558..b8e01bc 100644 --- a/infile.c +++ b/infile.c @@ -59,6 +59,8 @@ InputFile *open_input_file(const char *path) { LIST_INIT(ipf->queue); strcpy(ipf->path, path); + dbg("started input file %p %s", ipf, path); + return ipf; } @@ -325,12 +327,12 @@ void filepoll(void) { } char *dbg_report_ipf(InputFile *ipf) { - if (!ipf) return xasprintf("none"); + if (!ipf) return masprintf("none"); const char *slash= strrchr(ipf->path,'/'); const char *path= slash ? slash+1 : ipf->path; - return xasprintf("%p/%s:queue=%d,ip=%ld,autodef=%ld,off=%ld,fd=%d%s%s%s", + return masprintf("%p/%s:queue=%d,ip=%ld,autodef=%ld,off=%ld,fd=%d%s%s%s", ipf, path, ipf->queue.count, ipf->inprogress, ipf->autodefer, (long)ipf->offset, ipf->fd,