Skip to content

Commit c57b905

Browse files
author
Vincent Dupont
committed
fixup! fixup! tests: add file system benchmarking app
1 parent c95d1d4 commit c57b905

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/bench_vfs/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919

2020
#include <stdio.h>
21+
#include <string.h>
22+
#include <errno.h>
2123
#include <fcntl.h>
2224

2325
#include "board.h"
@@ -210,8 +212,8 @@ int main(void)
210212
vfs_close(fd);
211213
end = xtimer_now();
212214
diff = xtimer_diff(end, begin);
213-
printf("File #%d, %d bytes written in: %" PRIu32 "us\n", f,
214-
LOOP_SIZE * sizeof(buf - 1), xtimer_usec_from_ticks(diff));
215+
printf("File #%d, %u bytes written in: %" PRIu32 "us\n", f,
216+
(unsigned)(LOOP_SIZE * (sizeof(buf) - 1)), xtimer_usec_from_ticks(diff));
215217
total_time += xtimer_usec_from_ticks(diff);
216218
}
217219
printf("Mean time: %" PRIu32 "us\n", total_time / (uint32_t)FILE_LOOP_SIZE);

0 commit comments

Comments
 (0)