--- a/widget/gtk/IMContextWrapper.cpp
+++ b/widget/gtk/IMContextWrapper.cpp
@@ -1182,19 +1182,19 @@ IMContextWrapper::OnDeleteSurroundingCal
}
gboolean
IMContextWrapper::OnDeleteSurroundingNative(GtkIMContext* aContext,
gint aOffset,
gint aNChars)
{
MOZ_LOG(gGtkIMLog, LogLevel::Info,
- ("GTKIM: %p OnDeleteSurroundingNative(aContext=%p, aOffset=%ld, "
- "aNChar=%ld), current context=%p",
- this, aContext, GetCurrentContext()));
+ ("GTKIM: %p OnDeleteSurroundingNative(aContext=%p, aOffset=%d, "
+ "aNChar=%d), current context=%p",
+ this, aContext, aOffset, aNChars, GetCurrentContext()));
// See bug 472635, we should do nothing if IM context doesn't match.
if (GetCurrentContext() != aContext) {
MOZ_LOG(gGtkIMLog, LogLevel::Error,
("GTKIM: %p OnDeleteSurroundingNative(), FAILED, "
"given context doesn't match",
this));
return FALSE;
@@ -2056,17 +2056,17 @@ IMContextWrapper::GetCurrentParagraph(ns
}
nsresult
IMContextWrapper::DeleteText(GtkIMContext* aContext,
int32_t aOffset,
uint32_t aNChars)
{
MOZ_LOG(gGtkIMLog, LogLevel::Info,
- ("GTKIM: %p DeleteText(aContext=%p, aOffset=%d, aNChars=%d), "
+ ("GTKIM: %p DeleteText(aContext=%p, aOffset=%d, aNChars=%u), "
"mCompositionState=%s",
this, aContext, aOffset, aNChars, GetCompositionStateName()));
if (!mLastFocusedWindow) {
MOZ_LOG(gGtkIMLog, LogLevel::Error,
("GTKIM: %p DeleteText(), FAILED, there are no focused window "
"in this module",
this));