From cbd4bc0a3f6386cd000cb842b9f1f6325e301623 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 20 Feb 2015 09:06:39 +0100 Subject: [PATCH] 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 Signed-off-by: Jens Axboe --- btreplay/btrecord.c | 3 --- btreplay/btreplay.c | 4 ---- 2 files changed, 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 #include #include @@ -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 #include #include @@ -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*/ -- 2.25.1