diff options
author | Richard Hughes <richard@hughsie.com> | 2016-11-17 19:39:21 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-11-21 15:19:55 +0000 |
commit | da6750f328fd099fdd1d8cde59f88c07af692514 (patch) | |
tree | ed05ce353b54144ad38e535ed090c32b3fda13b1 /client | |
parent | c8c76fb8c85b2fbdf65652b85156682f37568ed8 (diff) | |
download | appstream-glib-da6750f328fd099fdd1d8cde59f88c07af692514.tar.gz |
trivial: Add as_ref_string_debug()
This allows us to debug the reference counted string functionality.
Diffstat (limited to 'client')
-rw-r--r-- | client/as-util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/as-util.c b/client/as-util.c index f3f6a2c..87bd77f 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -1362,6 +1362,13 @@ as_util_search (AsUtilPrivate *priv, gchar **values, GError **error) g_print ("%s\n", xml->str); } + /* dump refcounted string debug data */ + if (g_getenv ("AS_REF_STR_DEBUG") != NULL) { + g_autofree gchar *tmp = as_ref_string_debug (AS_REF_STRING_DEBUG_DEDUPED | + AS_REF_STRING_DEBUG_DUPES); + g_print ("%s", tmp); + } + return TRUE; } |