qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH RFT 1/2] coreaudio: Fix OSStatus format specifier


From: Andreas Färber
Subject: [Qemu-devel] [PATCH RFT 1/2] coreaudio: Fix OSStatus format specifier
Date: Thu, 23 Jun 2011 13:43:02 +0200

OSStatus type is defined as SInt32.
Use %d format instead of %ld to avoid a warning on ppc64.

Cc: Alexandre Raymond <address@hidden>
Cc: malc <address@hidden>
Signed-off-by: Andreas Faerber <address@hidden>
---
 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;
     }
 
-- 
1.7.5.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]