From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZkpz-0004mF-6n for qemu-devel@nongnu.org; Thu, 23 Jun 2011 10:24:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZkpt-0004NP-Ud for qemu-devel@nongnu.org; Thu, 23 Jun 2011 10:24:54 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:36496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZkpt-0004NK-HX for qemu-devel@nongnu.org; Thu, 23 Jun 2011 10:24:49 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 23 Jun 2011 16:24:46 +0200 Message-Id: <1308839086-29122-2-git-send-email-andreas.faerber@web.de> In-Reply-To: <1308839086-29122-1-git-send-email-andreas.faerber@web.de> References: <1308839086-29122-1-git-send-email-andreas.faerber@web.de> Sender: andreas.faerber@web.de Subject: [Qemu-devel] [PATCH 2/2] coreaudio: Avoid formatting UInt32 type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: cerbere@gmail.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= 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 Signed-off-by: Andreas Faerber --- audio/coreaudio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 508bcbe..5964c62 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; } -- 1.7.5.3