summaryrefslogtreecommitdiffstats
path: root/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-04-25 12:13:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-04-25 12:13:15 +0000
commit1d17ea6790b69372d535d740e9db5aa20a30ca98 (patch)
treeb48611619f0bd9b0b5017ec22e3323e3b7b71415 /mandocdb.c
parent104d232fbd10f97f7c8f4879e2957c549a2bcaa7 (diff)
downloadmandoc-1d17ea6790b69372d535d740e9db5aa20a30ca98.tar.gz
Reduce the verbosity of makewhatis -t:
In the past, it always showed the title lines of the files processed. Now, it only shows them when called with -D. That is better because pkg_create calls makewhatis -t. It is also more consistent with -D behaviour in non- -t modes. Issue reported by ajacoutot@; ok espie@ ajacoutot@ jasper@.
Diffstat (limited to 'mandocdb.c')
-rw-r--r--mandocdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mandocdb.c b/mandocdb.c
index e35501c4..277c00dc 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1996,6 +1996,8 @@ dbadd(struct mpage *mpage, struct mchars *mc)
mlink = mpage->mlinks;
if (nodb) {
+ if (0 == debug)
+ return;
while (NULL != mlink) {
fputs(mlink->name, stdout);
if (NULL == mlink->next ||