]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: update set_system_clock debugging
authorJ William Piggott <elseifthen@gmx.com>
Wed, 9 Aug 2017 00:50:55 +0000 (20:50 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Thu, 24 Aug 2017 22:30:39 +0000 (18:30 -0400)
commitb44dd522b4ca603f68f90577755bbd5538c0542f
treeccf14893ef035242065e6ccd33bf257084191c37
parent3a7669aa8ab5c07044aea66c8e2d9e4a1f5ab1cc
hwclock: update set_system_clock debugging

Update debug messages for a combined --systz and --hctosys in
the set_system_clock function.

New debug messages:

hwclock --test -D --systz --localtime
Calling settimeofday(NULL, 240) to warp System time.
Test mode: clock was not changed

hwclock --test -D --systz --utc
Calling settimeofday(NULL, 0) to lock the warp function.
Calling settimeofday(NULL, 240) to set the kernel timezone.
Test mode: clock was not changed

hwclock --test -D --hctosys --utc
Calling settimeofday(1502239269.733639, 240)
Test mode: clock was not changed

hwclock --test -D --hctosys --localtime
Calling settimeofday(NULL, 240) to set persistent_clock_is_local.
Calling settimeofday(1502253708.200200, 240)
Test mode: clock was not changed

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c