summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup/tzsetup.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-21 10:53:38 +0000
committerjkh <jkh@FreeBSD.org>1997-01-21 10:53:38 +0000
commitbf4519db91d503c9ce754dc5d0e8b2ba73654e8c (patch)
tree467b340202e4915b193cb81a956ca651a6f36481 /usr.sbin/tzsetup/tzsetup.c
parent01be75db9183bea7d2e226c5358af15fdfc96327 (diff)
downloadFreeBSD-src-bf4519db91d503c9ce754dc5d0e8b2ba73654e8c.zip
FreeBSD-src-bf4519db91d503c9ce754dc5d0e8b2ba73654e8c.tar.gz
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).
Diffstat (limited to 'usr.sbin/tzsetup/tzsetup.c')
-rw-r--r--usr.sbin/tzsetup/tzsetup.c4
1 files changed, 4 insertions, 0 deletions
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;
}
OpenPOWER on IntegriCloud