chiark
/
gitweb
/
~ian
/
innduct.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debianisation (initial cut)
[innduct.git]
/
infile.c
diff --git
a/infile.c
b/infile.c
index a8f0558cfaa67e5d2d94257a1b8cb8409e5e396d..b8e01bcfc6f6ad200a19741f70bcfa14a2f7dd1a 100644
(file)
--- 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);
LIST_INIT(ipf->queue);
strcpy(ipf->path, path);
+ dbg("started input file %p %s", ipf, path);
+
return ipf;
}
return ipf;
}
@@
-325,12
+327,12
@@
void filepoll(void) {
}
char *dbg_report_ipf(InputFile *ipf) {
}
char *dbg_report_ipf(InputFile *ipf) {
- if (!ipf) return
x
asprintf("none");
+ if (!ipf) return
m
asprintf("none");
const char *slash= strrchr(ipf->path,'/');
const char *path= slash ? slash+1 : ipf->path;
const char *slash= strrchr(ipf->path,'/');
const char *path= slash ? slash+1 : ipf->path;
- return
x
asprintf("%p/%s:queue=%d,ip=%ld,autodef=%ld,off=%ld,fd=%d%s%s%s",
+ return
m
asprintf("%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,
ipf, path,
ipf->queue.count, ipf->inprogress, ipf->autodefer,
(long)ipf->offset, ipf->fd,