1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

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).
This commit is contained in:
Jordan K. Hubbard 1997-01-21 10:53:38 +00:00
parent b878522622
commit c9af0102c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21915

View File

@ -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;
}