util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: JWP <elseifthen@gmx.com>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: [PATCH 5/5] hwclock: version prints out of order
Date: Thu, 23 Oct 2014 22:55:20 -0400	[thread overview]
Message-ID: <5449BF98.5020103@gmx.com> (raw)


The version string was printing after other
messages, it should be the first thing to print.

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

diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index 6d05d46..5ff5c70 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -1879,6 +1879,9 @@ int main(int argc, char **argv)
 		}
 	}
 #endif
+	if (debug)
+		out_version();
+
 	if (argc > 0) {
 		usage(_("%s takes no non-option arguments\n"
 			"You supplied %d\n"), program_invocation_short_name,
@@ -1941,9 +1944,6 @@ int main(int argc, char **argv)
 	}
 #endif

-	if (debug)
-		out_version();
-
 	if (!systz && !predict) {
 		determine_clock_access_method(directisa);
 		if (!ur) {

                 reply	other threads:[~2014-10-24  2:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5449BF98.5020103@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).