[nautilus-actions] na_core_utils_slist_dump(): also display string length
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] na_core_utils_slist_dump(): also display string length
- Date: Wed, 19 Jan 2011 21:54:37 +0000 (UTC)
commit 4bc1f3644d8814213cd58fc0d6de7126d8efd816
Author: Pierre Wieser <pwieser trychlos org>
Date: Sun Jan 16 01:06:57 2011 +0100
na_core_utils_slist_dump(): also display string length
ChangeLog | 2 ++
src/core/na-core-utils.c | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b21c2f1..698c30f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,8 @@
2011-01-15 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-core-utils.c (na_core_utils_slist_dump): Display string length.
+
* src/core/na-boxed.c
(na_boxed_free): Only free a non null structure.
(na_boxed_new_from_string_with_sep): Do not try to split an empty string.
diff --git a/src/core/na-core-utils.c b/src/core/na-core-utils.c
index fb691e2..20b28f4 100644
--- a/src/core/na-core-utils.c
+++ b/src/core/na-core-utils.c
@@ -311,7 +311,8 @@ na_core_utils_slist_dump( const gchar *prefix, GSList *list )
g_debug( "%s: list at %p has %d element(s)", thispfx, ( void * ) list, g_slist_length( list ));
for( i=list, c=0 ; i ; i=i->next ){
- g_debug( "%s: [%2d] %s", thispfx, c++, ( gchar * ) i->data );
+ g_debug( "%s: [%2d] %s (%lu)",
+ thispfx, c++, ( gchar * ) i->data, g_utf8_strlen( ( gchar * ) i->data, -1 ));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]