btreplay: remove timestamps
authorOlaf Hering <olaf@aepfle.de>
Fri, 20 Feb 2015 08:06:39 +0000 (09:06 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 25 Apr 2016 14:54:34 +0000 (08:54 -0600)
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>
btreplay/btrecord.c
btreplay/btreplay.c

index 36462579251e18636739d2aa5208109f0551e58f..a07ca07aae1fb908cd509d5555b0f67d74a0c29f 100644 (file)
@@ -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*/
 
index 321851c34f0632824b85bfd4086412de70e881d1..edaf81f60935afb876c9926f7a3f38ba70b165ea 100644 (file)
@@ -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*/