From: "Andreas Färber" <andreas.faerber@web.de>
To: qemu-devel@nongnu.org
Cc: cerbere@gmail.com, "Andreas Färber" <andreas.faerber@web.de>
Subject: [Qemu-devel] [PATCH v2 1/2] coreaudio: Fix OSStatus format specifier
Date: Thu, 23 Jun 2011 16:24:45 +0200 [thread overview]
Message-ID: <1308839086-29122-1-git-send-email-andreas.faerber@web.de> (raw)
In-Reply-To: <alpine.LNX.2.00.1106231652170.2186@linmac>
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>
---
audio/coreaudio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/audio/coreaudio.c b/audio/coreaudio.c
index 3bd75cd..508bcbe 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;
}
--
1.7.5.3
next prev parent reply other threads:[~2011-06-23 14:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-23 11:43 [Qemu-devel] [PATCH 0/2] Darwin CoreAudio warning fixes Andreas Färber
2011-06-23 11:43 ` [Qemu-devel] [PATCH RFT 1/2] coreaudio: Fix OSStatus format specifier Andreas Färber
2011-06-23 11:43 ` [Qemu-devel] [PATCH 2/2] coreaudio: Fix format for UInt32 type Andreas Färber
2011-06-23 12:54 ` [Qemu-devel] [PATCH RFT 1/2] coreaudio: Fix OSStatus format specifier malc
2011-06-23 14:24 ` Andreas Färber [this message]
2011-06-23 14:24 ` [Qemu-devel] [PATCH 2/2] coreaudio: Avoid formatting UInt32 type Andreas Färber
2011-06-23 14:56 ` Andreas Färber
2011-06-23 14:58 ` [Qemu-devel] [PATCH v2 1/2] coreaudio: Fix OSStatus format specifier malc
2011-06-29 3:08 ` Alexandre Raymond
2011-06-23 14:29 ` [Qemu-devel] [PATCH RFT " Andreas Färber
2011-06-23 11:48 ` [Qemu-devel] [PATCH 0/2] Darwin CoreAudio warning fixes Andreas Färber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308839086-29122-1-git-send-email-andreas.faerber@web.de \
--to=andreas.faerber@web.de \
--cc=cerbere@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).