Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
7a91c3db
Commit
7a91c3db
authored
Jul 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bccb2434
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
bigfile/tests/test_virtmem.c
bigfile/tests/test_virtmem.c
+3
-5
No files found.
bigfile/tests/test_virtmem.c
View file @
7a91c3db
...
@@ -227,14 +227,12 @@ int M(VMA *vma, pgoff_t idx) { return bitmap_test_bit(vma->page_ismappedv, idx)
...
@@ -227,14 +227,12 @@ int M(VMA *vma, pgoff_t idx) { return bitmap_test_bit(vma->page_ismappedv, idx)
/* _pagev_str returns string representation for vector of pages.
/* _pagev_str returns string representation for vector of pages.
* the memory has to be freed by user. */
* the memory has to be freed by user. */
char
*
_pagev_str
(
Page
**
pagev
,
int
pagec
)
{
char
*
_pagev_str
(
Page
**
pagev
,
int
pagec
)
{
char
*
vstr
;
char
*
vstr
;
size_t
_
;
size_t
_
;
FILE
*
w
=
open_memstream
(
&
vstr
,
&
_
);
FILE
*
w
=
open_memstream
(
&
vstr
,
&
_
);
fprintf
(
w
,
"["
);
for
(
int
i
=
0
;
i
<
pagec
;
i
++
)
for
(
int
i
=
0
;
i
<
pagec
;
i
++
)
fprintf
(
w
,
"%sp%ld
"
,
(
i
>
0
?
", "
:
""
),
pagev
[
i
]
->
f_pgoffset
);
fprintf
(
w
,
"%sp%ld
%s"
,
(
i
==
0
?
"["
:
", "
),
fprintf
(
w
,
"]"
);
pagev
[
i
]
->
f_pgoffset
,
(
i
==
pagec
-
1
?
"]"
:
""
)
);
fclose
(
w
);
fclose
(
w
);
return
vstr
;
return
vstr
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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