Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
608d393a
Commit
608d393a
authored
Dec 20, 2017
by
Pedro Gonnet
Committed by
Matthieu Schaller
Dec 21, 2017
Browse files
Be a bit more verbose.
parent
ad9169ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testDump.c
View file @
608d393a
...
...
@@ -65,6 +65,10 @@ int main(int argc, char *argv[]) {
struct
dump
d
;
dump_init
(
&
d
,
filename
,
1024
);
/* Print the page size for reference. */
printf
(
"Will dump %i bytes, page size is %zi bytes.
\n
"
,
num_runs
*
chunk_size
*
7
,
sysconf
(
_SC_PAGE_SIZE
));
/* Dump numbers in chunks. */
for
(
int
run
=
0
;
run
<
num_runs
;
run
++
)
{
...
...
@@ -95,6 +99,9 @@ int main(int argc, char *argv[]) {
#else
int
main
(
int
argc
,
char
*
argv
[])
{
return
0
;
}
int
main
(
int
argc
,
char
*
argv
[])
{
printf
(
"No posix_fallocate, not testing anything.
\n
"
);
return
0
;
}
#endif
/* HAVE_POSIX_FALLOCATE */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment