summaryrefslogtreecommitdiff
path: root/audio/coreaudio.c
diff options
context:
space:
mode:
authorAndreas Färber <andreas.faerber@web.de>2011-06-23 16:24:45 +0200
committermalc <av1474@comtv.ru>2011-06-23 18:56:58 +0400
commit744d3644181ddb16ef5944a0f9217e46961c8c84 (patch)
tree4140a8e7972c644a57f47f209bbb8baa4385177e /audio/coreaudio.c
parentcbc36cb05d56bc510e85d14059ee0ae2ae6e3126 (diff)
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 <av1474@comtv.ru> Signed-off-by: Andreas Faerber <andreas.faerber@web.de> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/coreaudio.c')
-rw-r--r--audio/coreaudio.c2
1 files changed, 1 insertions, 1 deletions
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;
}