From patchwork Thu Jun 23 14:24:45 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: 101644 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 23002B6F88 for ; Fri, 24 Jun 2011 00:55:20 +1000 (EST) Received: from localhost ([::1]:47632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZlJM-0004aP-NS for incoming@patchwork.ozlabs.org; Thu, 23 Jun 2011 10:55:17 -0400 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 Received: from smtp07.web.de ( [172.20.5.215]) by fmmailgate02.web.de (Postfix) with ESMTP id 6FCF81A39399A; 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-00; 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:45 +0200 Message-Id: <1308839086-29122-1-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.7.5.3 In-Reply-To: References: X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX1/+Dha2Bso0eU7YthsUDdFyWnR45n1BSW6m/lqX eII5Rex8ZIGEYnM1JvrknrgEkoJGFdrxRKFcXWQpGcyW6jueut +tT5TW3s0qBuDriUx98Q== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.227 Cc: cerbere@gmail.com, =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH v2 1/2] coreaudio: Fix OSStatus format specifier 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 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; }