From 70489b4f75c0afcb1b5c65e579b231d8f657b8c6 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 28 Mar 2022 09:56:12 +0900 Subject: yat2m: Only emit a message of the page with --verbose option. * doc/yat2m.c (finish_page): Conditionalize the output with VERBOSE. -- Signed-off-by: NIIBE Yutaka --- doc/yat2m.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/yat2m.c b/doc/yat2m.c index 10e03ec..8c05ad8 100644 --- a/doc/yat2m.c +++ b/doc/yat2m.c @@ -1323,7 +1323,8 @@ finish_page (void) } else if (opt_store) { - inf ("writing '%s'", thepage.name ); + if (verbose) + inf ("writing '%s'", thepage.name ); fp = fopen ( thepage.name, "w" ); if (!fp) die ("failed to create '%s': %s\n", thepage.name, strerror (errno)); -- cgit v1.2.3