diff options
author | Andreas Färber <andreas.faerber@web.de> | 2011-06-23 16:24:45 +0200 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2011-06-23 18:56:58 +0400 |
commit | 744d3644181ddb16ef5944a0f9217e46961c8c84 (patch) | |
tree | 4140a8e7972c644a57f47f209bbb8baa4385177e | |
parent | cbc36cb05d56bc510e85d14059ee0ae2ae6e3126 (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>
-rw-r--r-- | audio/coreaudio.c | 2 |
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; } |