diff options
| author | Andreas Färber | 2011-06-23 16:24:45 +0200 |
|---|---|---|
| committer | malc | 2011-06-23 16:56:58 +0200 |
| commit | 744d3644181ddb16ef5944a0f9217e46961c8c84 (patch) | |
| tree | 4140a8e7972c644a57f47f209bbb8baa4385177e /audio/coreaudio.c | |
| parent | coreaudio: Avoid formatting UInt32 type (diff) | |
| download | qemu-744d3644181ddb16ef5944a0f9217e46961c8c84.tar.gz qemu-744d3644181ddb16ef5944a0f9217e46961c8c84.tar.xz qemu-744d3644181ddb16ef5944a0f9217e46961c8c84.zip | |
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.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; } |
