idletime: fix another missing unlock on error
[fio.git] / blktrace.c
index 649cb83e702654c5d2f9267b3b992469b718a183..29eed50c391c422da566eb063cb2bc4863bd19a1 100644 (file)
@@ -150,7 +150,7 @@ static int lookup_device(struct thread_data *td, char *path, unsigned int maj,
                 */
                if (td->o.replay_redirect) {
                        dprint(FD_BLKTRACE, "device lookup: %d/%d\n overridden"
-                                       " with: %s", maj, min,
+                                       " with: %s\n", maj, min,
                                        td->o.replay_redirect);
                        strcpy(path, td->o.replay_redirect);
                        found = 1;
@@ -217,6 +217,7 @@ static int trace_add_file(struct thread_data *td, __u32 device)
 
                dprint(FD_BLKTRACE, "add devices %s\n", dev);
                fileno = add_file_exclusive(td, dev);
+               td->o.open_files++;
                td->files[fileno]->major = maj;
                td->files[fileno]->minor = min;
                trace_add_open_close_event(td, fileno, FIO_LOG_OPEN_FILE);