Skip to content

Commit

Permalink
scripts: time.pl: Don't print the time on stderr
Browse files Browse the repository at this point in the history
Having the build time written on stderr make it appear with V=w
although it is not an error or warning. Just write the time on stdout
to have it part of the build log like all the rest, but not clutter
the output when only warnings and errors should be shown.

Signed-off-by: Alban Bedel <albeu@free.fr>
  • Loading branch information
AlbanBedel authored and ynezz committed Jul 3, 2019
1 parent 47a9844 commit 340df72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/time.pl
Expand Up @@ -54,7 +54,7 @@ sub gettime {
my ($sec2, $usec2) = gettime();
my (undef, undef, $cuser, $csystem) = times();

printf STDERR "%s#%.2f#%.2f#%.2f\n",
printf STDOUT "%s#%.2f#%.2f#%.2f\n",
$prefix, $cuser, $csystem,
($sec2 - $sec) + ($usec2 - $usec) / 1000000;

Expand Down

0 comments on commit 340df72

Please sign in to comment.