summaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-03-23 11:55:34 +0100
committerThomas Haller <thaller@redhat.com>2017-03-23 11:55:34 +0100
commit8ddc3e308c6263ccb11e49cb87cbbad09a536b33 (patch)
tree81bb43ff52fe1a06fd723c146f6c4822d2871631 /src/platform
parent3ac07f381ec5b6f525e78984452565edfbe7065d (diff)
downloadNetworkManager-8ddc3e308c6263ccb11e49cb87cbbad09a536b33.tar.gz
platform: remove debug logging messages from "nmp-object.c"
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/nmp-object.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/platform/nmp-object.c b/src/platform/nmp-object.c
index 2a7d3edd9e..14d602ec1e 100644
--- a/src/platform/nmp-object.c
+++ b/src/platform/nmp-object.c
@@ -49,10 +49,6 @@
} \
} G_STMT_END
-/* logging to trace object lifetime and references.
- * Disabled by default. */
-#define _LOGr(...) G_STMT_START { if (FALSE) { _LOGt (__VA_ARGS__); } } G_STMT_END
-
/*****************************************************************************/
struct _NMPCache {
@@ -215,8 +211,6 @@ nmp_object_ref (NMPObject *obj)
g_return_val_if_fail (obj->_ref_count != NMP_REF_COUNT_STACKINIT, NULL);
obj->_ref_count++;
- _LOGr (obj, "ref: %d", obj->_ref_count);
-
return obj;
}
@@ -226,9 +220,6 @@ nmp_object_unref (NMPObject *obj)
if (obj) {
g_return_if_fail (obj->_ref_count > 0);
g_return_if_fail (obj->_ref_count != NMP_REF_COUNT_STACKINIT);
- _LOGr (obj, "%s: %d",
- obj->_ref_count <= 1 ? "destroy" : "unref",
- obj->_ref_count - 1);
if (--obj->_ref_count <= 0) {
const NMPClass *klass = obj->_class;
@@ -269,7 +260,6 @@ _nmp_object_new_from_class (const NMPClass *klass)
obj = g_slice_alloc0 (klass->sizeof_data + G_STRUCT_OFFSET (NMPObject, object));
obj->_class = klass;
obj->_ref_count = 1;
- _LOGr (obj, "new");
return obj;
}