diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-30 12:19:44 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-06-30 12:19:44 +0200 |
commit | ee8f4dcee639effe982bbb099a6f86f7c4fce5e0 (patch) | |
tree | 50f6b8e77c84cfa1570c97efea219b17695e2752 /src/systemcmds/tests/test_file.c | |
parent | 3f6851b9879c2e4d764926a3bc29ff800a17b73d (diff) | |
download | px4-firmware-ee8f4dcee639effe982bbb099a6f86f7c4fce5e0.tar.gz px4-firmware-ee8f4dcee639effe982bbb099a6f86f7c4fce5e0.tar.bz2 px4-firmware-ee8f4dcee639effe982bbb099a6f86f7c4fce5e0.zip |
systemcmds: Warning fixes
Diffstat (limited to 'src/systemcmds/tests/test_file.c')
-rw-r--r-- | src/systemcmds/tests/test_file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemcmds/tests/test_file.c b/src/systemcmds/tests/test_file.c index 86f23b485..570583dee 100644 --- a/src/systemcmds/tests/test_file.c +++ b/src/systemcmds/tests/test_file.c @@ -149,6 +149,8 @@ test_file(int argc, char *argv[]) } end = hrt_absolute_time(); + warnx("write took %llu us", (end - start)); + close(fd); fd = open("/fs/microsd/testfile", O_RDONLY); @@ -192,7 +194,6 @@ test_file(int argc, char *argv[]) warnx("testing aligned writes - please wait.. (CTRL^C to abort)"); - start = hrt_absolute_time(); for (unsigned i = 0; i < iterations; i++) { int wret = write(fd, write_buf, chunk_sizes[c]); |