From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZkqJ-0004y0-Tu for qemu-devel@nongnu.org; Thu, 23 Jun 2011 10:25:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZkqI-0004Uw-Fe for qemu-devel@nongnu.org; Thu, 23 Jun 2011 10:25:15 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:32910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZkqI-0004Uj-1L for qemu-devel@nongnu.org; Thu, 23 Jun 2011 10:25:14 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 23 Jun 2011 16:24:45 +0200 Message-Id: <1308839086-29122-1-git-send-email-andreas.faerber@web.de> In-Reply-To: References: Sender: andreas.faerber@web.de Subject: [Qemu-devel] [PATCH v2 1/2] coreaudio: Fix OSStatus format specifier 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?= OSStatus type is defined as SInt32. That's signed int on __LP64__ and signed long otherwise. Since it is an explicit 32-bit-width type, cast to corresponsing POSIX type and use PRId32 format specifier. This avoids a warning on ppc64. Cc: malc Signed-off-by: Andreas Faerber --- audio/coreaudio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 3bd75cd..508bcbe 100644 --- a/audio/coreaudio.c +++ b/audio/coreaudio.c @@ -104,7 +104,7 @@ static void coreaudio_logstatus (OSStatus status) break; default: - AUD_log (AUDIO_CAP, "Reason: status code %ld\n", status); + AUD_log (AUDIO_CAP, "Reason: status code %" PRId32 "\n", (int32_t)status); return; } -- 1.7.5.3