]> git.proxmox.com Git - qemu.git/commitdiff
coreaudio: Avoid formatting UInt32 type
authorAndreas Färber <andreas.faerber@web.de>
Thu, 23 Jun 2011 14:24:46 +0000 (16:24 +0200)
committermalc <av1474@comtv.ru>
Thu, 23 Jun 2011 14:56:50 +0000 (18:56 +0400)
coreaudioVoiceOut's audioDevicePropertyBufferFrameSize is defined as UInt32
and is being used by reference for AudioDevice{Get,Set}Property().
UInt32 is unsigned int on __LP64__ but unsigned long otherwise.

Cast to POSIX type and use PRIu32 format specifier to hide the details.
This avoids a warning on ppc64.

Cc: malc <av1474@comtv.ru>
Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
Signed-off-by: malc <av1474@comtv.ru>
audio/coreaudio.c

index 3bd75cdda4aa48156b3737a157ee498cca871f84..0c6f1ef6072503e895fa929c3a51c3613beb5da5 100644 (file)
@@ -360,8 +360,8 @@ 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",
-                           core->audioDevicePropertyBufferFrameSize);
+                           "Could not set device buffer frame size %" PRIu32 "\n",
+                           (uint32_t)core->audioDevicePropertyBufferFrameSize);
         return -1;
     }