Only print extra save_adjtime() messages in debug mode. This makes
the --test mode output consistent accross functions.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
(adjtime->local_utc == LOCAL) ? "LOCAL" : "UTC");
if (ctl->testing) {
- printf(_
- ("Not updating adjtime file because of testing mode.\n"));
- printf(_("Would have written the following to %s:\n%s"),
- ctl->adj_file_name, content);
+ if (ctl->debug){
+ printf(_("Test mode: %s was not updated with:\n%s"),
+ ctl->adj_file_name, content);
+ }
free(content);
return;
}