From 744d3644181ddb16ef5944a0f9217e46961c8c84 Mon Sep 17 00:00:00 2001 From: Andreas Färber Date: Thu, 23 Jun 2011 16:24:45 +0200 Subject: coreaudio: Fix OSStatus format specifier 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 Signed-off-by: malc --- audio/coreaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/coreaudio.c') diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 0c6f1ef607..5964c62eaf 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; } -- cgit v1.2.3