util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: J William Piggott <elseifthen@gmx.com>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: [PATCH 6/6] hwclock: for debugging print startup system time
Date: Fri, 18 Aug 2017 20:24:13 -0400	[thread overview]
Message-ID: <2e80fe91-3ed7-bcdb-7bf3-e17fa3176fda@gmx.com> (raw)
In-Reply-To: <7059c516-6d5f-0579-81be-60b4519f0ce7@gmx.com>


Signed-off-by: J William Piggott <elseifthen@gmx.com>
---
 sys-utils/hwclock.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index 4279931..72f1f09 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -1364,8 +1364,11 @@ int main(int argc, char **argv)
 	}
 #endif
 
-	if (ctl.debug)
+	if (ctl.debug) {
 		out_version();
+		printf(_("System Time: %ld.%06ld\n"),
+		       startup_time.tv_sec, startup_time.tv_usec);
+	}
 
 	if (!ctl.systz && !ctl.predict)
 		determine_clock_access_method(&ctl);

      parent reply	other threads:[~2017-08-19  0:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-19  0:16 [PATCH 0/6] Pull Request J William Piggott
2017-08-19  0:18 ` [PATCH 1/6] hwclock: move systz into hctosys J William Piggott
2017-08-19  0:19 ` [PATCH 2/6] hwclock: remove set_system_clock_timezone() J William Piggott
2017-08-19  0:20 ` [PATCH 3/6] hwclock: update set_system_clock debugging J William Piggott
2017-08-19  0:22 ` [PATCH 4/6] hwclock: update set_system_clock comments J William Piggott
2017-08-19  0:23 ` [PATCH 5/6] hwclock: rename/refactor set_system_clock() J William Piggott
2017-08-21  9:31   ` Karel Zak
2017-08-21 12:56     ` J William Piggott
2017-08-22  9:04       ` Karel Zak
2017-08-24 23:35         ` J William Piggott
2017-08-25  6:48           ` Karel Zak
2017-08-19  0:24 ` J William Piggott [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2e80fe91-3ed7-bcdb-7bf3-e17fa3176fda@gmx.com \
    --to=elseifthen@gmx.com \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).