# SDL: os2: more -Wformat warning fixes

**URL:** <https://discourse.libsdl.org/t/sdl-os2-more-wformat-warning-fixes/69453>\
**Category:** SDL Commits\
**Created:** [October 2, 2026, 9:57am UTC](https://discourse.libsdl.org/t/sdl-os2-more-wformat-warning-fixes/69453 "2026-10-02T09:57:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [October 2, 2026, 9:57am UTC](https://discourse.libsdl.org/t/sdl-os2-more-wformat-warning-fixes/69453/1 "2026-10-02T09:57:59Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/8cee8f3a8196338e64f9d7943a3017bc6b8ce015>

```diff
From 8cee8f3a8196338e64f9d7943a3017bc6b8ce015 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 1 Oct 2026 23:56:32 +0300
Subject: [PATCH] os2: more -Wformat warning fixes

---
 src/audio/os2/SDL_os2audio.c | 4 ++--
 src/video/os2/SDL_os2video.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/audio/os2/SDL_os2audio.c b/src/audio/os2/SDL_os2audio.c
index 55b7c6bde47a0..b26dd83451ba5 100644
--- a/src/audio/os2/SDL_os2audio.c
+++ b/src/audio/os2/SDL_os2audio.c
@@ -72,7 +72,7 @@ static LONG APIENTRY cbAudioWriteEvent(ULONG ulStatus, PMCI_MIX_BUFFER pBuffer,
     SDL_PrivateAudioData *pAData = (SDL_PrivateAudioData *)_this->hidden;
     ULONG ulRC;
 
- debug_os2("cbAudioWriteEvent: ulStatus = %lu, pBuffer = %p, ulFlags = %lX",ulStatus,pBuffer,ulFlags);
+ debug_os2("cbAudioWriteEvent: ulStatus = %lu, pBuffer = %p, ulFlags = 0x%lX",ulStatus,pBuffer,ulFlags);
 
     if (pAData->ulState == 2)
     {
@@ -107,7 +107,7 @@ static LONG APIENTRY cbAudioReadEvent(ULONG ulStatus, PMCI_MIX_BUFFER pBuffer,
     SDL_PrivateAudioData *pAData = (SDL_PrivateAudioData *)_this->hidden;
     ULONG ulRC;
 
- debug_os2("cbAudioReadEvent: ulStatus = %lu, pBuffer = %p, ulFlags = %lX",ulStatus,pBuffer,ulFlags);
+ debug_os2("cbAudioReadEvent: ulStatus = %lu, pBuffer = %p, ulFlags = 0x%lX",ulStatus,pBuffer,ulFlags);
 
     if (pAData->ulState == 2)
     {
diff --git a/src/video/os2/SDL_os2video.c b/src/video/os2/SDL_os2video.c
index 9e87ac2ace68c..d78597f2c1606 100644
--- a/src/video/os2/SDL_os2video.c
+++ b/src/video/os2/SDL_os2video.c
@@ -1331,7 +1331,7 @@ static int OS2_CreateWindowFramebuffer(_THIS, SDL_Window *window,
         return -1;
 
     *format = pSDLDisplayMode->format;
- debug_os2("Pitch: %d, frame buffer: 0x%X.", *pitch, *pixels);
+ debug_os2("Pitch: %d, frame buffer: 0x%p.", *pitch, *pixels);
     WinSendMsg(pWinData->hwnd, WM_VRNENABLED, 0, 0);
 
     return 0;

```
