From patchwork Thu Jun 23 14:24:46 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 101630 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 864B9B6F84 for ; Fri, 24 Jun 2011 00:33:48 +1000 (EST) Received: from localhost ([::1]:48977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZkyW-0006VG-CM for incoming@patchwork.ozlabs.org; Thu, 23 Jun 2011 10:33:44 -0400 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 Received: from smtp07.web.de ( [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id DB96A192AA9AA; Thu, 23 Jun 2011 16:24:47 +0200 (CEST) Received: from [87.173.122.232] (helo=af.local) by smtp07.web.de with asmtp (WEB.DE 4.110 #2) id 1QZkpr-0007uu-01; Thu, 23 Jun 2011 16:24:47 +0200 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Thu, 23 Jun 2011 16:24:46 +0200 Message-Id: <1308839086-29122-2-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.7.5.3 In-Reply-To: <1308839086-29122-1-git-send-email-andreas.faerber@web.de> References: <1308839086-29122-1-git-send-email-andreas.faerber@web.de> X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX18EmnwEKD1omQOktqAStnlACosyuuMBMwN7pKDP AfBeMo37Pv66wdDpbaIKvgf83L6i+RolGEtlqk1DnMt3Gx62bz pyUe0i05xyXVMcLUXldA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.234 Cc: cerbere@gmail.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH 2/2] coreaudio: Avoid formatting UInt32 type X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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; }