Received: from eggs.gnu.org ([140.186.70.92]:49188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZjQh-0003vm-GA for qemu-devel@nongnu.org; Thu, 23 Jun 2011 08:54:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZjQg-0003BJ-0m for qemu-devel@nongnu.org; Thu, 23 Jun 2011 08:54:43 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:60432 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZjQf-0003B9-Kx for qemu-devel@nongnu.org; Thu, 23 Jun 2011 08:54:41 -0400 Date: Thu, 23 Jun 2011 16:54:09 +0400 (MSD) From: malc In-Reply-To: <1308829383-11282-2-git-send-email-andreas.faerber@web.de> Message-ID: References: <1308829383-11282-1-git-send-email-andreas.faerber@web.de> <1308829383-11282-2-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH RFT 1/2] coreaudio: Fix OSStatus format specifier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Andreas_F=E4rber?= Cc: cerbere@gmail.com, qemu-devel@nongnu.org On Thu, 23 Jun 2011, Andreas F?rber wrote: > OSStatus type is defined as SInt32. > Use %d format instead of %ld to avoid a warning on ppc64. Which itself is defined as typedef signed long SInt32; (here on ppc32 inside: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/libkern/OSTypes.h) So i'd suggest to just cast the thing to appropriate long type and be done with it. > > Cc: Alexandre Raymond > Cc: malc > Signed-off-by: Andreas Faerber > --- > Alexandre, Could you please test this on v10.6? Thanks! > > audio/coreaudio.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/audio/coreaudio.c b/audio/coreaudio.c > index 3bd75cd..d2b9248 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 %d\n", status); > return; > } > > -- mailto:av1474@comtv.ru