From 744d3644181ddb16ef5944a0f9217e46961c8c84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20F=C3=A4rber?= Date: Thu, 23 Jun 2011 16:24:45 +0200 Subject: [PATCH] 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(-) 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; } -- 2.11.4.GIT