aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds/tests/test_file.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-06-30 12:19:44 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-06-30 12:19:44 +0200
commitee8f4dcee639effe982bbb099a6f86f7c4fce5e0 (patch)
tree50f6b8e77c84cfa1570c97efea219b17695e2752 /src/systemcmds/tests/test_file.c
parent3f6851b9879c2e4d764926a3bc29ff800a17b73d (diff)
downloadpx4-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.c3
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]);