UPSTREAM: cbfscomptool: fix display of time_t
Not all systems have sizeof(time_t) == sizeof(long), so
cast the delta here to a long to match the %ld format.
BUG=none
BRANCH=none
TEST=none
Change-Id: Ic398f319b1711f32e4e2c0b579d2fc858084f714
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: a8ca03223a
Original-Change-Id: If235577fc35454ddb15043c5a543f614b6f16a9e
Original-Signed-off-by: Mike Frysinger <vapier@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19902
Original-Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-on: https://chromium-review.googlesource.com/517929
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
3a488fb5e4
commit
ba2fa57d3c
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ int benchmark()
|
|||
clock_gettime(CLOCK_MONOTONIC, &t_e);
|
||||
printf("compressing %d bytes to %d took %ld seconds\n",
|
||||
bufsize, outsize,
|
||||
t_e.tv_sec - t_s.tv_sec);
|
||||
(long)(t_e.tv_sec - t_s.tv_sec));
|
||||
}
|
||||
free(data);
|
||||
free(compressed_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue