Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
dhcp
Commits
dd3373f4
Commit
dd3373f4
authored
Jul 27, 2016
by
Shawn Routhier
Browse files
[master] Fix test allocation message to use %zu
parent
10b7683e
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/tests/test_alloc.c
View file @
dd3373f4
...
...
@@ -551,7 +551,7 @@ void checkBuffer(size_t test_size, const char *file, int line) {
max_size
=
((
size_t
)
-
1
)
-
DMDSIZE
;
if
(
test_size
>
max_size
)
{
atf_tc_skip
(
"Test size greater than max size, %
lx
"
,
test_size
);
atf_tc_skip
(
"Test size greater than max size, %
zu
"
,
test_size
);
return
;
}
...
...
@@ -562,10 +562,10 @@ void checkBuffer(size_t test_size, const char *file, int line) {
if
(
buf
!=
NULL
)
{
buf
[
test_size
-
1
]
=
1
;
if
(
buf
[
test_size
-
1
]
!=
1
)
atf_tc_fail
(
"Value mismatch for index %
l
u"
,
test_size
);
atf_tc_fail
(
"Value mismatch for index %
z
u"
,
test_size
);
dfree
(
buf
,
file
,
line
);
}
else
{
atf_tc_skip
(
"Unable to allocate memory %
l
u"
,
test_size
);
atf_tc_skip
(
"Unable to allocate memory %
z
u"
,
test_size
);
}
}
...
...
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