aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2015-02-20 09:06:39 +0100
committerJens Axboe <axboe@fb.com>2016-04-25 08:54:34 -0600
commitcbd4bc0a3f6386cd000cb842b9f1f6325e301623 (patch)
treee4c21fc6b30580e45df0a59780c752f65d67fcb0
parent747f0e2870e6672c6af832226e10cfa8a39ff109 (diff)
downloadblktrace-cbd4bc0a3f6386cd000cb842b9f1f6325e301623.tar.gz
btreplay: remove timestamps
Using __DATE__ and __TIME__ will break reproducible builds. The resulting binary will change with each rebuild even if the source and toolchain is identical. Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--btreplay/btrecord.c3
-rw-r--r--btreplay/btreplay.c4
2 files changed, 0 insertions, 7 deletions
diff --git a/btreplay/btrecord.c b/btreplay/btrecord.c
index 3646257..a07ca07 100644
--- a/btreplay/btrecord.c
+++ b/btreplay/btrecord.c
@@ -18,8 +18,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-static char build_date[] = __DATE__ " at "__TIME__;
-
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
@@ -449,7 +447,6 @@ void handle_args(int argc, char *argv[])
case 'V':
fprintf(stderr, "btrecord -- version %s\n",
my_btversion);
- fprintf(stderr, " Built on %s\n", build_date);
exit(0);
/*NOTREACHED*/
diff --git a/btreplay/btreplay.c b/btreplay/btreplay.c
index 321851c..edaf81f 100644
--- a/btreplay/btreplay.c
+++ b/btreplay/btreplay.c
@@ -18,8 +18,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-static char build_date[] = __DATE__ " at "__TIME__;
-
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
@@ -1559,8 +1557,6 @@ static void handle_args(int argc, char *argv[])
case 'V':
fprintf(stderr, "btreplay -- version %s\n",
my_btversion);
- fprintf(stderr, " Built on %s\n",
- build_date);
exit(0);
/*NOTREACHED*/