Patchwork [2/2] coreaudio: Fix format for UInt32 type

login
register
mail settings
Submitter Andreas Färber
Date June 23, 2011, 11:43 a.m.
Message ID <1308829383-11282-3-git-send-email-andreas.faerber@web.de>
Download mbox | patch
Permalink /patch/101622/
State New
Headers show

Comments

Andreas Färber - June 23, 2011, 11:43 a.m.
coreaudioVoiceOut's audioDevicePropertyBufferFrameSize is defined as UInt32.
Use %u instead of %ld to avoid a warning on ppc64.

Cc: malc <av1474@comtv.ru>
Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
---
 audio/coreaudio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/audio/coreaudio.c b/audio/coreaudio.c
index d2b9248..69a0f05 100644
--- a/audio/coreaudio.c
+++ b/audio/coreaudio.c
@@ -360,7 +360,7 @@  static int coreaudio_init_out (HWVoiceOut *hw, struct audsettings *as)
         &core->audioDevicePropertyBufferFrameSize);
     if (status != kAudioHardwareNoError) {
         coreaudio_logerr2 (status, typ,
-                           "Could not set device buffer frame size %ld\n",
+                           "Could not set device buffer frame size %u\n",
                            core->audioDevicePropertyBufferFrameSize);
         return -1;
     }