[nautilus-actions] Improve debug messages
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Improve debug messages
- Date: Fri, 3 Sep 2010 16:36:35 +0000 (UTC)
commit 3280127550ee6846a273b54bd5a7337951448ca7
Author: Pierre Wieser <pwieser trychlos org>
Date: Fri Sep 3 12:00:07 2010 +0200
Improve debug messages
ChangeLog | 3 +++
src/io-desktop/nadp-writer.c | 9 +++++++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d76f178..13e9ef5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-09-03 Pierre Wieser <pwieser trychlos org>
+ * src/io-desktop/nadp-writer.c (write_done_write_subitems_list):
+ Improve debug messages.
+
* src/nact/nact-icommand-tab.c
(on_tab_updatable_selection_changed): Update example label.
(parse_parameters): Cleanup code.
diff --git a/src/io-desktop/nadp-writer.c b/src/io-desktop/nadp-writer.c
index 025642a..514f83e 100644
--- a/src/io-desktop/nadp-writer.c
+++ b/src/io-desktop/nadp-writer.c
@@ -583,9 +583,12 @@ write_done_write_subitems_list( NadpDesktopFile *ndp, NAObjectItem *item )
static const gchar *thisfn = "nadp_writer_write_done_write_subitems_list";
GSList *subitems;
GSList *profile_groups, *ip;
+ gchar *tmp;
subitems = na_object_get_items_slist( item );
- na_core_utils_slist_dump( thisfn, subitems );
+ tmp = g_strdup_printf( "%s (written subitems)", thisfn );
+ na_core_utils_slist_dump( tmp, subitems );
+ g_free( tmp );
nadp_desktop_file_set_string_list(
ndp,
@@ -594,7 +597,9 @@ write_done_write_subitems_list( NadpDesktopFile *ndp, NAObjectItem *item )
subitems );
profile_groups = nadp_desktop_file_get_profiles( ndp );
- na_core_utils_slist_dump( thisfn, profile_groups );
+ tmp = g_strdup_printf( "%s (existing profiles)", thisfn );
+ na_core_utils_slist_dump( tmp, profile_groups );
+ g_free( tmp );
for( ip = profile_groups ; ip ; ip = ip->next ){
if( na_core_utils_slist_count( subitems, ( const gchar * ) ip->data ) == 0 ){
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]