Only warn once for blktrace log open failure
authorJens Axboe <jens.axboe@oracle.com>
Mon, 23 Jul 2007 12:16:55 +0000 (14:16 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 23 Jul 2007 12:16:55 +0000 (14:16 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
blktrace.c

index 8ebbae6f2fbe788c3c2ee353385535dac68c90ce..b4d05c739cdc6843dedda732908dbd67fdfb21de 100644 (file)
@@ -75,10 +75,8 @@ int is_blktrace(const char *filename)
        int fd, ret;
 
        fd = open(filename, O_RDONLY);
        int fd, ret;
 
        fd = open(filename, O_RDONLY);
-       if (fd < 0) {
-               perror("open blktrace");
+       if (fd < 0)
                return 0;
                return 0;
-       }
 
        ret = read(fd, &t, sizeof(t));
        close(fd);
 
        ret = read(fd, &t, sizeof(t));
        close(fd);