[gjs] Fix the build with debug logs enabled



commit 3a02c0579c8216aadcc2803b10fd0d8fb16a283b
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Jul 3 10:39:43 2017 +0200

    Fix the build with debug logs enabled
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784469

 gi/boxed.cpp       |    2 +-
 gi/fundamental.cpp |    2 +-
 gi/ns.cpp          |    2 +-
 gi/object.cpp      |    6 +++---
 gi/repo.cpp        |    2 +-
 gi/union.cpp       |    2 +-
 gjs/importer.cpp   |    2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gi/boxed.cpp b/gi/boxed.cpp
index 3fe037d..f7608a9 100644
--- a/gi/boxed.cpp
+++ b/gi/boxed.cpp
@@ -131,7 +131,7 @@ boxed_resolve(JSContext       *context,
 
     priv = priv_from_js(context, obj);
     gjs_debug_jsprop(GJS_DEBUG_GBOXED, "Resolve prop '%s' hook obj %p priv %p",
-                     name, obj.get(), priv);
+                     name.get(), obj.get(), priv);
 
     if (priv == nullptr)
         return false; /* wrong class */
diff --git a/gi/fundamental.cpp b/gi/fundamental.cpp
index 4ff6702..fec3d76 100644
--- a/gi/fundamental.cpp
+++ b/gi/fundamental.cpp
@@ -311,7 +311,7 @@ fundamental_instance_resolve(JSContext       *context,
     priv = priv_from_js(context, obj);
     gjs_debug_jsprop(GJS_DEBUG_GFUNDAMENTAL,
                      "Resolve prop '%s' hook obj %p priv %p",
-                     name, obj.get(), priv);
+                     name.get(), obj.get(), priv);
 
     if (priv == nullptr)
         return false; /* wrong class */
diff --git a/gi/ns.cpp b/gi/ns.cpp
index 830e4e9..359ace3 100644
--- a/gi/ns.cpp
+++ b/gi/ns.cpp
@@ -75,7 +75,7 @@ ns_resolve(JSContext       *context,
     priv = priv_from_js(context, obj);
     gjs_debug_jsprop(GJS_DEBUG_GNAMESPACE,
                      "Resolve prop '%s' hook obj %p priv %p",
-                     name, obj.get(), priv);
+                     name.get(), obj.get(), priv);
 
     if (priv == NULL) {
         *resolved = false;  /* we are the prototype, or have the wrong class */
diff --git a/gi/object.cpp b/gi/object.cpp
index c98425c..4664161 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -400,7 +400,7 @@ object_instance_get_prop(JSContext              *context,
     priv = priv_from_js(context, obj);
     gjs_debug_jsprop(GJS_DEBUG_GOBJECT,
                      "Get prop '%s' hook obj %p priv %p",
-                     name, obj.get(), priv);
+                     name.get(), obj.get(), priv);
 
     if (priv == nullptr)
         /* If we reach this point, either object_instance_new_resolve
@@ -515,7 +515,7 @@ object_instance_set_prop(JSContext              *context,
     priv = priv_from_js(context, obj);
     gjs_debug_jsprop(GJS_DEBUG_GOBJECT,
                      "Set prop '%s' hook obj %p priv %p",
-                     name, obj.get(), priv);
+                     name.get(), obj.get(), priv);
 
     if (priv == nullptr)
         /* see the comment in object_instance_get_prop() on this */
@@ -676,7 +676,7 @@ object_instance_resolve(JSContext       *context,
 
     gjs_debug_jsprop(GJS_DEBUG_GOBJECT,
                      "Resolve prop '%s' hook obj %p priv %p (%s.%s) gobj %p %s",
-                     name,
+                     name.get(),
                      obj.get(),
                      priv,
                      priv && priv->info ? g_base_info_get_namespace (priv->info) : "",
diff --git a/gi/repo.cpp b/gi/repo.cpp
index 1c0636a..599da82 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -178,7 +178,7 @@ repo_resolve(JSContext       *context,
 
     priv = priv_from_js(context, obj);
     gjs_debug_jsprop(GJS_DEBUG_GREPO, "Resolve prop '%s' hook obj %p priv %p",
-                     name, obj.get(), priv);
+                     name.get(), obj.get(), priv);
 
     if (priv == NULL) {
         /* we are the prototype, or have the wrong class */
diff --git a/gi/union.cpp b/gi/union.cpp
index c18e367..996d885 100644
--- a/gi/union.cpp
+++ b/gi/union.cpp
@@ -70,7 +70,7 @@ union_resolve(JSContext       *context,
 
     priv = priv_from_js(context, obj);
     gjs_debug_jsprop(GJS_DEBUG_GBOXED, "Resolve prop '%s' hook obj %p priv %p",
-                     name, obj.get(), priv);
+                     name.get(), obj.get(), priv);
 
     if (priv == nullptr)
         return false; /* wrong class */
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index ff592c1..d87519a 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -809,7 +809,7 @@ importer_resolve(JSContext        *context,
 
     gjs_debug_jsprop(GJS_DEBUG_IMPORTER,
                      "Resolve prop '%s' hook obj %p priv %p",
-                     name, obj.get(), priv);
+                     name.get(), obj.get(), priv);
     if (priv == NULL) {
         /* we are the prototype, or have the wrong class */
         *resolved = false;


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