mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
fix string format specifiers
- fixed invalid, missing or additional arguments - removed all type casts from arguments - added missing (void*) typecasts for %p arguments - use inttypes defines where appropriate
This commit is contained in:
@@ -29,7 +29,7 @@ static INLINE UINT32 lzcnt_s(UINT32 x)
|
||||
int test_lzcnt()
|
||||
{
|
||||
if (lzcnt_s(0x1) != 31) {
|
||||
fprintf(stderr, "__lzcnt(0x1) != 31: %d\n", __lzcnt(0x1));
|
||||
fprintf(stderr, "__lzcnt(0x1) != 31: %"PRIu32"\n", __lzcnt(0x1));
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ int TestIntrinsics(int argc, char* argv[])
|
||||
{
|
||||
g_LZCNT = IsProcessorFeaturePresentEx(PF_EX_LZCNT);
|
||||
|
||||
printf("LZCNT available: %d\n", g_LZCNT);
|
||||
printf("LZCNT available: %"PRId32"\n", g_LZCNT);
|
||||
|
||||
//test_lzcnt16();
|
||||
return test_lzcnt();
|
||||
|
||||
Reference in New Issue
Block a user