ntdll/tests: Avoid long long printf formats in traces.
This commit is contained in:
parent
2cf2c4568f
commit
b84fda836e
|
@ -591,20 +591,23 @@ static void one_i64toa_test(int test_num, const ulonglong2str_t *ulonglong2str)
|
||||||
dest_str[LARGE_STRI_BUFFER_LENGTH] = '\0';
|
dest_str[LARGE_STRI_BUFFER_LENGTH] = '\0';
|
||||||
result = p_i64toa(ulonglong2str->value, dest_str, ulonglong2str->base);
|
result = p_i64toa(ulonglong2str->value, dest_str, ulonglong2str->base);
|
||||||
ok(result == dest_str,
|
ok(result == dest_str,
|
||||||
"(test %d): _i64toa(%Lu, [out], %d) has result %p, expected: %p\n",
|
"(test %d): _i64toa(%08x%08x, [out], %d) has result %p, expected: %p\n",
|
||||||
test_num, ulonglong2str->value, ulonglong2str->base, result, dest_str);
|
test_num, (DWORD)(ulonglong2str->value >> 32), (DWORD)ulonglong2str->value,
|
||||||
|
ulonglong2str->base, result, dest_str);
|
||||||
if (ulonglong2str->mask & 0x04) {
|
if (ulonglong2str->mask & 0x04) {
|
||||||
if (memcmp(dest_str, ulonglong2str->Buffer, LARGE_STRI_BUFFER_LENGTH) != 0) {
|
if (memcmp(dest_str, ulonglong2str->Buffer, LARGE_STRI_BUFFER_LENGTH) != 0) {
|
||||||
if (memcmp(dest_str, ulonglong2str[1].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,
|
ok(memcmp(dest_str, ulonglong2str->Buffer, LARGE_STRI_BUFFER_LENGTH) == 0,
|
||||||
"(test %d): _i64toa(%Lu, [out], %d) assigns string \"%s\", expected: \"%s\"\n",
|
"(test %d): _i64toa(%08x%08x, [out], %d) assigns string \"%s\", expected: \"%s\"\n",
|
||||||
test_num, ulonglong2str->value, ulonglong2str->base, dest_str, ulonglong2str->Buffer);
|
test_num, (DWORD)(ulonglong2str->value >> 32), (DWORD)ulonglong2str->value,
|
||||||
|
ulonglong2str->base, dest_str, ulonglong2str->Buffer);
|
||||||
} /* if */
|
} /* if */
|
||||||
} /* if */
|
} /* if */
|
||||||
} else {
|
} else {
|
||||||
ok(memcmp(dest_str, ulonglong2str->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 %d): _i64toa(%08x%08x, [out], %d) assigns string \"%s\", expected: \"%s\"\n",
|
||||||
test_num, ulonglong2str->value, ulonglong2str->base, dest_str, ulonglong2str->Buffer);
|
test_num, (DWORD)(ulonglong2str->value >> 32), (DWORD)ulonglong2str->value,
|
||||||
|
ulonglong2str->base, dest_str, ulonglong2str->Buffer);
|
||||||
} /* if */
|
} /* if */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue