fileio: refactor struct fileio to be an opaque structure
[fw/openocd] / src / flash / nand / tcl.c
index 57bbe00e5c379cffd550e87993cb39cd33e538f7..a54f8ea8fe6ddffdf5734f7cc6dc126a841b756e 100644 (file)
@@ -389,8 +389,8 @@ COMMAND_HANDLER(handle_nand_dump_command)
        if (nand_fileio_finish(&s) == ERROR_OK)
        {
                command_print(CMD_CTX, "dumped %ld bytes in %fs (%0.3f KiB/s)",
-                               (long)s.fileio.size, duration_elapsed(&s.bench),
-                               duration_kbps(&s.bench, s.fileio.size));
+                               (long)fileio_size(&s.fileio), duration_elapsed(&s.bench),
+                               duration_kbps(&s.bench, fileio_size(&s.fileio)));
        }
        return ERROR_OK;
 }