summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backends/file/e-book-backend-file.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 1aa752ffd..d2b928b05 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,6 +1,12 @@
2007-05-18 Ross Burton <ross@openedhand.com>
* backends/file/e-book-backend-file.c:
+ Tiny changes: disable debug output, make a warning more useful,
+ and fix some whitespace.
+
+2007-05-18 Ross Burton <ross@openedhand.com>
+
+ * backends/file/e-book-backend-file.c:
Don't duplicate the contact UID when modifying a contact.
2007-05-16 Jules Colding <colding@omesc.com>
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index cae1fe1f0..b6fae140b 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -53,7 +53,7 @@
#include "e-book-backend-file.h"
-#define d(x) x
+#define d(x)
#define CHANGES_DB_SUFFIX ".changes.db"
@@ -1359,7 +1359,7 @@ e_book_backend_file_sync (EBookBackend *backend)
if (bf->priv->file_db) {
db_error = bf->priv->file_db->sync (bf->priv->file_db, 0);
if (db_error != 0)
- g_warning ("db->sync failed with %d", db_error);
+ g_warning (G_STRLOC ": db->sync failed with %s", db_strerror (db_error));
}
}
@@ -1501,7 +1501,7 @@ e_book_backend_file_class_init (EBookBackendFileClass *klass)
backend_class->stop_book_view = e_book_backend_file_stop_book_view;
backend_class->cancel_operation = e_book_backend_file_cancel_operation;
backend_class->set_mode = e_book_backend_file_set_mode;
- backend_class->sync = e_book_backend_file_sync;
+ backend_class->sync = e_book_backend_file_sync;
sync_class->remove_sync = e_book_backend_file_remove;
sync_class->create_contact_sync = e_book_backend_file_create_contact;
sync_class->remove_contacts_sync = e_book_backend_file_remove_contacts;