Kill unused parameters
[fio.git] / log.c
diff --git a/log.c b/log.c
index 63c0a332d6bb6680998cbfd81a186d0ff6f24a3e..15de3c24d10bf64698325479af7e5b45f80c81aa 100644 (file)
--- a/log.c
+++ b/log.c
@@ -334,15 +334,6 @@ static int read_iolog2(struct thread_data *td, FILE *f)
        return 0;
 }
 
-/*
- * Read version 1 iolog data.
- */
-static int read_iolog(struct thread_data *td, FILE *f)
-{
-       log_err("fio: iolog version 1 is no longer supported\n");
-       return 1;
-}
-
 /*
  * open iolog, check version, and call appropriate parser
  */
@@ -372,16 +363,8 @@ static int init_iolog_read(struct thread_data *td)
        if (!strncmp(iolog_ver2, buffer, strlen(iolog_ver2)))
                ret = read_iolog2(td, f);
        else {
-               /*
-                * seek back to the beginning
-                */
-               if (fseek(f, 0, SEEK_SET) < 0) {
-                       td_verror(td, errno, "iolog read");
-                       log_err("fio: unable to read iolog\n");
-                       return 1;
-               }
-
-               ret = read_iolog(td, f);
+               log_err("fio: iolog version 1 is no longer supported\n");
+               ret = 1;
        }
 
        fclose(f);
@@ -484,6 +467,6 @@ void finish_log(struct thread_data *td, struct io_log *log, const char *name)
 {
        char file_name[256];
 
-       snprintf(file_name, 200, "client%d_%s.log", td->thread_number, name);
+       snprintf(file_name, 200, "%s_%s.log", td->o.name, name);
        __finish_log(log, file_name);
 }