[coreboot-gerrit] Change in coreboot[master]: cbfscomptool: fix display of time_t
Patrick Georgi (Code Review)
gerrit at coreboot.org
Sat May 27 01:45:20 CEST 2017
Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/19902 )
Change subject: cbfscomptool: fix display of time_t
......................................................................
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.
Change-Id: If235577fc35454ddb15043c5a543f614b6f16a9e
Signed-off-by: Mike Frysinger <vapier at chromium.org>
Reviewed-on: https://review.coreboot.org/19902
Reviewed-by: Patrick Georgi <pgeorgi at google.com>
Tested-by: build bot (Jenkins) <no-reply at coreboot.org>
---
M util/cbfstool/cbfscomptool.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Patrick Georgi: Looks good to me, approved
diff --git a/util/cbfstool/cbfscomptool.c b/util/cbfstool/cbfscomptool.c
index 3430809..1021bc8 100644
--- a/util/cbfstool/cbfscomptool.c
+++ b/util/cbfstool/cbfscomptool.c
@@ -81,7 +81,7 @@
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);
--
To view, visit https://review.coreboot.org/19902
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If235577fc35454ddb15043c5a543f614b6f16a9e
Gerrit-PatchSet: 3
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Mike Frysinger <vapier at chromium.org>
Gerrit-Reviewer: Aaron Durbin <adurbin at chromium.org>
Gerrit-Reviewer: Mike Frysinger <vapier at chromium.org>
Gerrit-Reviewer: Patrick Georgi <pgeorgi at google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
More information about the coreboot-gerrit
mailing list