diff options
author | Andreas Färber <andreas.faerber@web.de> | 2011-06-23 16:24:46 +0200 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2011-06-23 18:56:50 +0400 |
commit | cbc36cb05d56bc510e85d14059ee0ae2ae6e3126 (patch) | |
tree | a6ee3bd4101f7ee34c885af937074e2d840cedef | |
parent | 48e2faf222cbf4abab7c8e4b3f44229ec98eae7f (diff) | |
download | qemu-cbc36cb05d56bc510e85d14059ee0ae2ae6e3126.zip qemu-cbc36cb05d56bc510e85d14059ee0ae2ae6e3126.tar.gz qemu-cbc36cb05d56bc510e85d14059ee0ae2ae6e3126.tar.bz2 |
coreaudio: Avoid formatting UInt32 type
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>
-rw-r--r-- | audio/coreaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 3bd75cd..0c6f1ef 100644 --- a/audio/coreaudio.c +++ b/audio/coreaudio.c @@ -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; } |