From fa1a5ed07ae8387698025ce5d024a36e2d1500e2 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 18 May 2007 10:38:00 +0000 Subject: Tiny changes: disable debug output, make a warning more useful, and fix 2007-05-18 Ross Burton * backends/file/e-book-backend-file.c: Tiny changes: disable debug output, make a warning more useful, and fix some whitespace. svn path=/trunk/; revision=7763 --- addressbook/ChangeLog | 6 ++++++ addressbook/backends/file/e-book-backend-file.c | 6 +++--- 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,3 +1,9 @@ +2007-05-18 Ross Burton + + * 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 * backends/file/e-book-backend-file.c: 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; -- cgit v1.2.1