[vlc-commits] objects: do not print parent address
Rémi Denis-Courmont
git at videolan.org
Thu May 31 22:06:35 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 31 22:09:42 2018 +0300| [7a9127bb410a4cd9cf37bd3bf63d2da9d09e817a] | committer: Rémi Denis-Courmont
objects: do not print parent address
It is already very visible above.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a9127bb410a4cd9cf37bd3bf63d2da9d09e817a
---
src/misc/objects.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index d1ea869410..f537230353 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -60,9 +60,8 @@ static void PrintObject (vlc_object_t *obj, const char *prefix)
vlc_object_internals_t *priv = vlc_internals(obj);
int canc = vlc_savecancel ();
- printf (" %so %p %s, %u refs, parent %p\n", prefix, (void *)obj,
- obj->obj.object_type, atomic_load(&priv->refs),
- (void *)obj->obj.parent);
+ printf(" %so %p %s, %u refs\n", prefix, (void *)obj,
+ obj->obj.object_type, atomic_load(&priv->refs));
vlc_restorecancel (canc);
}
@@ -165,7 +164,8 @@ static int VarsCommand (vlc_object_t *obj, char const *cmd,
else
vlc_object_hold (obj);
- PrintObject (obj, "");
+ printf(" o %p %s, parent %p\n", (void *)obj,
+ obj->obj.object_type, (void *)obj->obj.parent);
DumpVariables (obj);
vlc_object_release (obj);
More information about the vlc-commits
mailing list