X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=infile.c;fp=infile.c;h=b8e01bcfc6f6ad200a19741f70bcfa14a2f7dd1a;hb=db28a17d552a0f73cb2cb34f46389a691522265c;hp=73e291b839dcc6b1c82e809d00e602ed956a8465;hpb=eb115f7cd8f64bb5bfe95c98e10bf8ab845f9e47;p=innduct.git diff --git a/infile.c b/infile.c index 73e291b..b8e01bc 100644 --- a/infile.c +++ b/infile.c @@ -327,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,