From: Denys Vlasenko Date: Wed, 26 Nov 2014 13:04:51 +0000 (+0100) Subject: bbunit: fix WANT_TIMING compilation X-Git-Tag: 1_23_0~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2835a224cd603489ac08625265d383d4690cb58a;p=oweals%2Fbusybox.git bbunit: fix WANT_TIMING compilation Signed-off-by: Denys Vlasenko --- diff --git a/libbb/bbunit.c b/libbb/bbunit.c index 256014441..4c692d59f 100644 --- a/libbb/bbunit.c +++ b/libbb/bbunit.c @@ -77,7 +77,7 @@ int unit_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) #if WANT_TIMING gettimeofday(&end, NULL); timeval_diff(&time_spent, &end, &begin); - bb_error_msg("Elapsed time %u.%06u seconds" + bb_error_msg("Elapsed time %u.%06u seconds", (int)time_spent.tv_sec, (int)time_spent.tv_usec); #endif