summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mandocdb.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-04-25 12:12:36 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-04-25 12:12:36 +0000
commit9ad0945832b589c0ccbdfcb5a89bf2aef93a62b0 (patch)
tree66aa597123a4bbe082731bc9d66ebb5e687903d8 /usr.bin/mandoc/mandocdb.c
parentb9e3dba9f740723e88e40c1a3557a7d7ca16e7eb (diff)
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 'usr.bin/mandoc/mandocdb.c')
-rw-r--r--usr.bin/mandoc/mandocdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mandocdb.c b/usr.bin/mandoc/mandocdb.c
index 3da7cae4c25..0c59b862ab3 100644
--- a/usr.bin/mandoc/mandocdb.c
+++ b/usr.bin/mandoc/mandocdb.c
@@ -1,4 +1,4 @@
-/* $Id: mandocdb.c,v 1.101 2014/04/23 21:06:33 schwarze Exp $ */
+/* $Id: mandocdb.c,v 1.102 2014/04/25 12:12:35 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -1988,6 +1988,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 ||