Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b84fda83
Commit
b84fda83
authored
Jan 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Avoid long long printf formats in traces.
parent
2cf2c456
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
string.c
dlls/ntdll/tests/string.c
+9
-6
No files found.
dlls/ntdll/tests/string.c
View file @
b84fda83
...
...
@@ -591,20 +591,23 @@ static void one_i64toa_test(int test_num, const ulonglong2str_t *ulonglong2str)
dest_str
[
LARGE_STRI_BUFFER_LENGTH
]
=
'\0'
;
result
=
p_i64toa
(
ulonglong2str
->
value
,
dest_str
,
ulonglong2str
->
base
);
ok
(
result
==
dest_str
,
"(test %d): _i64toa(%Lu, [out], %d) has result %p, expected: %p
\n
"
,
test_num
,
ulonglong2str
->
value
,
ulonglong2str
->
base
,
result
,
dest_str
);
"(test %d): _i64toa(%08x%08x, [out], %d) has result %p, expected: %p
\n
"
,
test_num
,
(
DWORD
)(
ulonglong2str
->
value
>>
32
),
(
DWORD
)
ulonglong2str
->
value
,
ulonglong2str
->
base
,
result
,
dest_str
);
if
(
ulonglong2str
->
mask
&
0x04
)
{
if
(
memcmp
(
dest_str
,
ulonglong2str
->
Buffer
,
LARGE_STRI_BUFFER_LENGTH
)
!=
0
)
{
if
(
memcmp
(
dest_str
,
ulonglong2str
[
1
].
Buffer
,
LARGE_STRI_BUFFER_LENGTH
)
!=
0
)
{
ok
(
memcmp
(
dest_str
,
ulonglong2str
->
Buffer
,
LARGE_STRI_BUFFER_LENGTH
)
==
0
,
"(test %d): _i64toa(%Lu, [out], %d) assigns string
\"
%s
\"
, expected:
\"
%s
\"\n
"
,
test_num
,
ulonglong2str
->
value
,
ulonglong2str
->
base
,
dest_str
,
ulonglong2str
->
Buffer
);
"(test %d): _i64toa(%08x%08x, [out], %d) assigns string
\"
%s
\"
, expected:
\"
%s
\"\n
"
,
test_num
,
(
DWORD
)(
ulonglong2str
->
value
>>
32
),
(
DWORD
)
ulonglong2str
->
value
,
ulonglong2str
->
base
,
dest_str
,
ulonglong2str
->
Buffer
);
}
/* if */
}
/* if */
}
else
{
ok
(
memcmp
(
dest_str
,
ulonglong2str
->
Buffer
,
LARGE_STRI_BUFFER_LENGTH
)
==
0
,
"(test %d): _i64toa(%Lu, [out], %d) assigns string
\"
%s
\"
, expected:
\"
%s
\"\n
"
,
test_num
,
ulonglong2str
->
value
,
ulonglong2str
->
base
,
dest_str
,
ulonglong2str
->
Buffer
);
"(test %d): _i64toa(%08x%08x, [out], %d) assigns string
\"
%s
\"
, expected:
\"
%s
\"\n
"
,
test_num
,
(
DWORD
)(
ulonglong2str
->
value
>>
32
),
(
DWORD
)
ulonglong2str
->
value
,
ulonglong2str
->
base
,
dest_str
,
ulonglong2str
->
Buffer
);
}
/* if */
}
...
...
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