From 16144a112edba91cddcba65e2cfac37266a3b1f9 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 26 Oct 2001 18:22:26 +0000 Subject: make debug info more accurate 2001-10-26 JP Rosevear * conduit/address-conduit.c (check_for_slow_setting): make debug info more accurate svn path=/trunk/; revision=14153 --- addressbook/ChangeLog | 5 +++++ addressbook/conduit/address-conduit.c | 18 ++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index e40d74d9b3..7a8822b7b1 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2001-10-26 JP Rosevear + + * conduit/address-conduit.c (check_for_slow_setting): make debug + info more accurate + 2001-10-26 JP Rosevear * conduit/address-conduit.c (e_addr_context_destroy): prevent diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c index a3bbf4ec1d..adf7615eb9 100644 --- a/addressbook/conduit/address-conduit.c +++ b/addressbook/conduit/address-conduit.c @@ -937,19 +937,17 @@ ecard_from_remote_record(EAddrConduitContext *ctxt, static void check_for_slow_setting (GnomePilotConduit *c, EAddrConduitContext *ctxt) { - int count, map_count; + GnomePilotConduitStandard *conduit = GNOME_PILOT_CONDUIT_STANDARD (c); + int map_count; - count = g_list_length (ctxt->cards); - map_count = g_hash_table_size (ctxt->map->pid_map); - - if (map_count == 0) { - GnomePilotConduitStandard *conduit; - LOG (" doing slow sync\n"); - conduit = GNOME_PILOT_CONDUIT_STANDARD (c); + map_count = g_hash_table_size (ctxt->map->pid_map); + if (map_count == 0) gnome_pilot_conduit_standard_set_slow (conduit, TRUE); - } else { + + if (gnome_pilot_conduit_standard_get_slow (conduit)) + LOG (" doing slow sync\n"); + else LOG (" doing fast sync\n"); - } } static void -- cgit v1.2.3