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@xxxxxxx> --- sys-utils/hwclock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index a98f4e3..31ee8fe 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -919,10 +919,10 @@ static void save_adjtime(const struct hwclock_control *ctl, (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; } -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html