diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-09-28 15:37:56 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-09-29 08:43:27 +0200 |
commit | 3a693ef526575633cc350a69aa1a5d1f08e64c46 (patch) | |
tree | 6af64277137ac59254bf20d7d3ca175728a709bd /src/target/etm.c | |
parent | ecad76061f6edff5db67ad05e6514dff6cd6efc7 (diff) | |
download | riscv-openocd-3a693ef526575633cc350a69aa1a5d1f08e64c46.zip riscv-openocd-3a693ef526575633cc350a69aa1a5d1f08e64c46.tar.gz riscv-openocd-3a693ef526575633cc350a69aa1a5d1f08e64c46.tar.bz2 |
fileio: refactor struct fileio to be an opaque structure
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/etm.c')
-rw-r--r-- | src/target/etm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/etm.c b/src/target/etm.c index 9da6955..c71c5d1 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -1897,7 +1897,7 @@ COMMAND_HANDLER(handle_etm_load_command) return ERROR_FAIL; } - if (file.size % 4) + if (fileio_size(&file) % 4) { command_print(CMD_CTX, "size isn't a multiple of 4, no valid trace data"); fileio_close(&file); |