bbunit: fix WANT_TIMING compilation

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2014-11-26 14:04:51 +01:00
parent eff58f15b0
commit 2835a224cd

View File

@ -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