Skip to content

Commit

Permalink
Fix some typos in diagnostic messages
Browse files Browse the repository at this point in the history
Detected by Debian's packaging QA tool, Lintian.

Signed-off-by: Simon McVittie <smcv@collabora.com>
  • Loading branch information
smcv authored and slouken committed Jun 13, 2022
1 parent c95edd9 commit 63b3b9a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/video/kmsdrm/SDL_kmsdrmvulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ SDL_bool KMSDRM_Vulkan_CreateSurface(_THIS,
}
}

/* If we couldn't find an appropiate plane, error out. */
/* If we couldn't find an appropriate plane, error out. */
if (plane == UINT32_MAX) {
SDL_SetError("Vulkan couldn't find an appropiate plane.");
SDL_SetError("Vulkan couldn't find an appropriate plane.");
goto clean;
}

Expand Down
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11window.c
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@ int SDL_X11_SetWindowTitle(Display* display, Window xwindow, char* title) {
} else if (conv < 0) {
return SDL_OutOfMemory();
} else { /* conv > 0 */
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "%d characters were not convertable to the current locale!", conv);
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "%d characters were not convertible to the current locale!", conv);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion test/testautomation_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ static const SDLTest_TestCaseReference platformTest1 =
{ (SDLTest_TestCaseFp)platform_testTypes, "platform_testTypes", "Tests predefined types", TEST_ENABLED};

static const SDLTest_TestCaseReference platformTest2 =
{ (SDLTest_TestCaseFp)platform_testEndianessAndSwap, "platform_testEndianessAndSwap", "Tests endianess and swap functions", TEST_ENABLED};
{ (SDLTest_TestCaseFp)platform_testEndianessAndSwap, "platform_testEndianessAndSwap", "Tests endianness and swap functions", TEST_ENABLED};

static const SDLTest_TestCaseReference platformTest3 =
{ (SDLTest_TestCaseFp)platform_testGetFunctions, "platform_testGetFunctions", "Tests various SDL_GetXYZ functions", TEST_ENABLED};
Expand Down
2 changes: 1 addition & 1 deletion test/testguid.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ TestGuidToString(void)
++written_size;
}
if (!ASSERT_EQ("Output length is within expected bounds", 1, written_size <= size)) {
SDL_Log(" with lenght %d: wrote %d of %d permitted bytes",
SDL_Log(" with length %d: wrote %d of %d permitted bytes",
size, written_size, size);
}
if (size >= 33) {
Expand Down

0 comments on commit 63b3b9a

Please sign in to comment.