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:
@@ -13,7 +13,7 @@ int TestRdTkNinePatch(int argc, char* argv[])
|
||||
|
||||
if (!(engine = rdtk_engine_new()))
|
||||
{
|
||||
printf("%s: error creating rdtk engine (%u)\n", __FUNCTION__, GetLastError());
|
||||
printf("%s: error creating rdtk engine (%"PRIu32")\n", __FUNCTION__, GetLastError());
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ int TestRdTkNinePatch(int argc, char* argv[])
|
||||
/* let rdtk allocate the surface buffer */
|
||||
if (!(surface = rdtk_surface_new(engine, NULL, width, height, scanline)))
|
||||
{
|
||||
printf("%s: error creating auto-allocated surface (%u)\n", __FUNCTION__, GetLastError());
|
||||
printf("%s: error creating auto-allocated surface (%"PRIu32")\n", __FUNCTION__, GetLastError());
|
||||
goto out;
|
||||
}
|
||||
rdtk_surface_free(surface);
|
||||
@@ -34,13 +34,13 @@ int TestRdTkNinePatch(int argc, char* argv[])
|
||||
/* test self-allocated buffer */
|
||||
if (!(data = calloc(height, scanline)))
|
||||
{
|
||||
printf("%s: error allocating surface buffer (%u)\n", __FUNCTION__, GetLastError());
|
||||
printf("%s: error allocating surface buffer (%"PRIu32")\n", __FUNCTION__, GetLastError());
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!(surface = rdtk_surface_new(engine, data, width, height, scanline)))
|
||||
{
|
||||
printf("%s: error creating self-allocated surface (%u)\n", __FUNCTION__, GetLastError());
|
||||
printf("%s: error creating self-allocated surface (%"PRIu32")\n", __FUNCTION__, GetLastError());
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user