Skip to contentSkip to conversation

hwclock: version prints out of order

PATCH In review JWP 1 participant 1 message Oct 24, 2014 Util-Linux package

lore
Share & tools
lore

JWP

author
#0 lore raw

PATCH 5/5 hwclock: version prints out of order

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

---
 sys-utils/hwclock.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sys-utils/hwclock.c +3 -3
index 6d05d46..5ff5c70 100644
@@ -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) {