[evolution/gnome-3-24] Use the right format string for WebPage's id



commit 37ab0761b3bc6c4a0c8093eb5e9f2b76546f0beb
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Mar 24 13:05:13 2017 +0100

    Use the right format string for WebPage's id
    
    e-webkit-editor.c:5785:3: warning: format '%ld' expects argument of type 'long int', but argument 4 has 
type 'guint64 {aka long long unsigned int}' [-Wformat=]

 src/modules/webkit-editor/e-webkit-editor.c        |    2 +-
 .../web-extension/e-editor-web-extension.c         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/modules/webkit-editor/e-webkit-editor.c b/src/modules/webkit-editor/e-webkit-editor.c
index 36dc898..284906f 100644
--- a/src/modules/webkit-editor/e-webkit-editor.c
+++ b/src/modules/webkit-editor/e-webkit-editor.c
@@ -5998,7 +5998,7 @@ webkit_editor_web_process_crashed_cb (EWebKitEditor *wk_editor)
        /* No suitable EAlertSink found as the parent widget */
        if (!widget) {
                g_warning (
-                       "WebKitWebProcess (page id %ld) for EWebKitEditor crashed",
+                       "WebKitWebProcess (page id %" G_GUINT64_FORMAT ") for EWebKitEditor crashed",
                        webkit_web_view_get_page_id (WEBKIT_WEB_VIEW (wk_editor)));
        }
 }
diff --git a/src/modules/webkit-editor/web-extension/e-editor-web-extension.c 
b/src/modules/webkit-editor/web-extension/e-editor-web-extension.c
index d9477db..af5d7db 100644
--- a/src/modules/webkit-editor/web-extension/e-editor-web-extension.c
+++ b/src/modules/webkit-editor/web-extension/e-editor-web-extension.c
@@ -2234,7 +2234,7 @@ handle_method_call (GDBusConnection *connection,
        return;
 
  error:
-       g_warning ("Cannot obtain WebKitWebPage for '%ld'", page_id);
+       g_warning ("Cannot obtain WebKitWebPage for %" G_GUINT64_FORMAT, page_id);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]