Bug 1087161 - Upgrading B2G toolchain to gcc-4.9

* Fixed some -Werror=format issues by making function-style castings

--HG--
extra : rebase_source : e9677c42819a8e95008bb3e97b97b47eff915021
This commit is contained in:
Juan Gomez 2015-04-09 18:13:39 +02:00
parent 016b169721
commit 74d291470d
3 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ public:
}
nsresult rv = NS_DispatchToMainThread(runnable);
if (NS_FAILED(rv)) {
BT_LOGR("NS_DispatchToMainThread failed: %X", rv);
BT_LOGR("NS_DispatchToMainThread failed: %X", unsigned(rv));
}
}
@ -128,7 +128,7 @@ public:
}
nsresult rv = NS_DispatchToMainThread(runnable);
if (NS_FAILED(rv)) {
BT_LOGR("NS_DispatchToMainThread failed: %X", rv);
BT_LOGR("NS_DispatchToMainThread failed: %X", unsigned(rv));
}
}

View File

@ -168,7 +168,7 @@ GonkMediaDataDecoder::ProcessDecode(MediaRawData* aSample)
nsresult rv = mManager->Input(aSample);
if (rv != NS_OK) {
NS_WARNING("GonkAudioDecoder failed to input data");
GMDD_LOG("Failed to input data err: %d",rv);
GMDD_LOG("Failed to input data err: %d",int(rv));
mCallback->Error();
return;
}

View File

@ -941,7 +941,7 @@ WebrtcOMXH264VideoEncoder::Encode(const webrtc::I420VideoFrame& aInputImage,
nsresult rv = mOMX->ConfigureDirect(format,
OMXVideoEncoder::BlobFormat::AVC_NAL);
if (NS_WARN_IF(NS_FAILED(rv))) {
CODEC_LOGE("WebrtcOMXH264VideoEncoder:%p FAILED configuring encoder %d", this, rv);
CODEC_LOGE("WebrtcOMXH264VideoEncoder:%p FAILED configuring encoder %d", this, int(rv));
return WEBRTC_VIDEO_CODEC_ERROR;
}
mOMXConfigured = true;