X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=blobdiff_plain;f=infile.c;h=b8e01bcfc6f6ad200a19741f70bcfa14a2f7dd1a;hp=73e291b839dcc6b1c82e809d00e602ed956a8465;hb=e2d02662c513ccf5ed9391483cec014a12db087d;hpb=b350fb6533f6855e54050aec6d69cfd0e27e239e 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,