We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95d1d4 commit c57b905Copy full SHA for c57b905
tests/bench_vfs/main.c
@@ -18,6 +18,8 @@
18
*/
19
20
#include <stdio.h>
21
+#include <string.h>
22
+#include <errno.h>
23
#include <fcntl.h>
24
25
#include "board.h"
@@ -210,8 +212,8 @@ int main(void)
210
212
vfs_close(fd);
211
213
end = xtimer_now();
214
diff = xtimer_diff(end, begin);
- printf("File #%d, %d bytes written in: %" PRIu32 "us\n", f,
- 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));
217
total_time += xtimer_usec_from_ticks(diff);
218
}
219
printf("Mean time: %" PRIu32 "us\n", total_time / (uint32_t)FILE_LOOP_SIZE);
0 commit comments