From 3a693ef526575633cc350a69aa1a5d1f08e64c46 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Tue, 28 Sep 2010 15:37:56 +0200 Subject: fileio: refactor struct fileio to be an opaque structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/flash/nand/tcl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/flash/nand/tcl.c') diff --git a/src/flash/nand/tcl.c b/src/flash/nand/tcl.c index 57bbe00e..a54f8ea8 100644 --- a/src/flash/nand/tcl.c +++ b/src/flash/nand/tcl.c @@ -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; } -- cgit v1.2.3