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:
Norbert Federa
2016-12-13 22:47:08 +01:00
parent 73ac495870
commit f71b6b46e8
310 changed files with 3187 additions and 3200 deletions

View File

@@ -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;
}