chiark
/
gitweb
/
~ian
/
innduct.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8c63344
)
Do not show empty wd2ipf slots as there can be many
author
Ian Jackson
<ian@chiark.greenend.org.uk>
Tue, 1 Jun 2010 16:34:14 +0000
(17:34 +0100)
committer
Ian Jackson
<ian@chiark.greenend.org.uk>
Tue, 1 Jun 2010 16:34:14 +0000
(17:34 +0100)
filemon.c
patch
|
blob
|
history
diff --git
a/filemon.c
b/filemon.c
index b06bfaa20e1ebc449df3ff335bd4f48d3c2adc17..0c8a1d0ca409b8bad0abfb340c35ab0ee50ebfee 100644
(file)
--- a/
filemon.c
+++ b/
filemon.c
@@
-109,8
+109,10
@@
void filemon_method_dump_info(FILE *f) {
fprintf(f,"inotify");
DUMPV("%d",,filemon_inotify_fd);
DUMPV("%d",,filemon_inotify_wdmax);
+ fprintf(f,"\n");
for (i=0; i<filemon_inotify_wdmax; i++)
- fprintf(f," wd2ipf[%d]=%p\n", i, filemon_inotify_wd2ipf[i]);
+ if (filemon_inotify_wd2ipf[i])
+ fprintf(f," wd2ipf[%d]=%p\n", i, filemon_inotify_wd2ipf[i]);
}
#endif /* HAVE_INOTIFY && !HAVE_FILEMON */