From bf4519db91d503c9ce754dc5d0e8b2ba73654e8c Mon Sep 17 00:00:00 2001 From: jkh Date: Tue, 21 Jan 1997 10:53:38 +0000 Subject: Make some of the less necessary user feedback #ifdef VERBOSE. We could also make this stuff only come out when getpid() != 1 and thus avoid the install case (where it really is just too verbose, and people have complained), but this seems less messy and no one complained when tzsetup didn't print the final "things went fine!" messages (which sort of contravene the UNIX spirit of only yelling when you need to anyway). --- usr.sbin/tzsetup/tzsetup.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.sbin/tzsetup/tzsetup.c') diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c index 53cb0bf..e00bc37 100644 --- a/usr.sbin/tzsetup/tzsetup.c +++ b/usr.sbin/tzsetup/tzsetup.c @@ -482,6 +482,7 @@ install_zone_file(const char *filename) else copymode = 1; +#ifdef VERBOSE if (copymode) asprintf(&msg, "Copying %s to " _PATH_LOCALTIME, filename); else @@ -490,6 +491,7 @@ install_zone_file(const char *filename) dialog_notify(msg); free(msg); +#endif if (reallydoit) { if (copymode) { @@ -550,6 +552,7 @@ install_zone_file(const char *filename) } } +#ifdef VERBOSE if (copymode) asprintf(&msg, "Copied timezone file from %s to " _PATH_LOCALTIME, filename); @@ -559,6 +562,7 @@ install_zone_file(const char *filename) dialog_mesgbox("Done", msg, 8, 72); free(msg); +#endif return DITEM_LEAVE_MENU; } -- cgit v1.1