diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-01-21 10:53:38 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-01-21 10:53:38 +0000 |
commit | c9af0102c6593174da0cde31ce3c6b0c07b51683 (patch) | |
tree | 467b340202e4915b193cb81a956ca651a6f36481 /usr.sbin/tzsetup/tzsetup.c | |
parent | b8785226220dd73752a1858e781add0d08fc0a0e (diff) | |
download | src-c9af0102c6593174da0cde31ce3c6b0c07b51683.tar.gz src-c9af0102c6593174da0cde31ce3c6b0c07b51683.zip |
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).
Notes
Notes:
svn path=/head/; revision=21915
Diffstat (limited to 'usr.sbin/tzsetup/tzsetup.c')
-rw-r--r-- | usr.sbin/tzsetup/tzsetup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c index 53cb0bf21e10..e00bc37896fc 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; } |