iolog: Keep full path for logs files
[fio.git] / engines / falloc.c
index 525a0aae922d0e2d024122ba5e23ebcb24cbaf83..17a901ad93f54e08802d88260d0c48a6bde9070f 100644 (file)
@@ -4,7 +4,7 @@
  * IO engine that does regular fallocate to simulate data transfer 
  * as fio ioengine.
  * DDIR_READ  does fallocate(,mode = FALLOC_FL_KEEP_SIZE,)
- * DDIR_WRITE does fallocate(,mode = 0) : fallocate with size extention 
+ * DDIR_WRITE does fallocate(,mode = 0) : fallocate with size extension
  * DDIR_TRIM  does fallocate(,mode = FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)
  *
  */
@@ -43,9 +43,10 @@ open_again:
 
        if (f->fd == -1) {
                char buf[FIO_VERROR_SIZE];
-               int __e = errno;
-               snprintf(buf, sizeof(buf) - 1, "open(%s)", f->file_name);
-               td_verror(td, __e, buf);
+               int e = errno;
+
+               snprintf(buf, sizeof(buf), "open(%s)", f->file_name);
+               td_verror(td, e, buf);
        }
 
        if (!from_hash && f->fd != -1) {