From 98bcced9ad8b35ce00666b9c8e08f0192bad0346 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 16 Oct 2009 18:30:59 +0100 Subject: connectivity: small fix to a debug message Signed-off-by: Jonny Lamb --- libempathy/empathy-connectivity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libempathy/empathy-connectivity.c b/libempathy/empathy-connectivity.c index c6551ae5c..f6a723ef6 100644 --- a/libempathy/empathy-connectivity.c +++ b/libempathy/empathy-connectivity.c @@ -105,8 +105,8 @@ connectivity_nm_state_change_cb (NMClient *client, new_nm_connected = !(state == NM_STATE_CONNECTING || state == NM_STATE_DISCONNECTED); - DEBUG ("New NetworkManager network state %d (connected: %d", state, - new_nm_connected); + DEBUG ("New NetworkManager network state %d (connected: %s)", state, + new_nm_connected ? "true" : "false"); connectivity_change_state (connectivity, new_nm_connected); } -- cgit v1.2.3 From 2d2dee09f6f816b1c7669baad8162b06ba2b1dcb Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 16 Oct 2009 22:48:10 +0100 Subject: empathy-import-mc4-accounts: no need to add newlines to DEBUG calls Signed-off-by: Jonny Lamb --- src/empathy-import-mc4-accounts.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/empathy-import-mc4-accounts.c b/src/empathy-import-mc4-accounts.c index 17b712832..efbb6f060 100644 --- a/src/empathy-import-mc4-accounts.c +++ b/src/empathy-import-mc4-accounts.c @@ -227,7 +227,7 @@ _create_account_cb (GObject *source, goto out; } - DEBUG ("account created\n"); + DEBUG ("account created"); account = empathy_account_settings_get_account ( EMPATHY_ACCOUNT_SETTINGS (source)); @@ -248,7 +248,7 @@ _get_protocol_from_profile (const gchar *profile) { gint i; - DEBUG ("profile: %s\n", profile); + DEBUG ("profile: %s", profile); for (i = 0; i < G_N_ELEMENTS (profile_protocol_map); i++) if (!tp_strdiff (profile, profile_protocol_map[i].profile)) @@ -394,7 +394,7 @@ import_one_account (const char *path, if (profile == NULL) { - DEBUG ("Account is missing a profile entry\n"); + DEBUG ("Account is missing a profile entry"); goto failed; } @@ -424,7 +424,7 @@ import_one_account (const char *path, if (entries == NULL) { - DEBUG ("Failed to get all entries: %s\n", error->message); + DEBUG ("Failed to get all entries: %s", error->message); g_error_free (error); goto failed; } @@ -491,7 +491,7 @@ empathy_import_mc4_accounts (EmpathyConnectionManagers *managers) if (error != NULL) { - DEBUG ("Failed to get import_mc4_accounts key: %s\n", error->message); + DEBUG ("Failed to get import_mc4_accounts key: %s", error->message); g_error_free (error); goto out; } @@ -502,13 +502,13 @@ empathy_import_mc4_accounts (EmpathyConnectionManagers *managers) goto out; } - DEBUG ("MC 4 accounts are going to be imported\n"); + DEBUG ("MC 4 accounts are going to be imported"); dirs = gconf_client_all_dirs (client, MC_ACCOUNTS_GCONF_BASE, &error); if (error != NULL) { - DEBUG ("Failed to get MC4 account dirs: %s\n", + DEBUG ("Failed to get MC4 account dirs: %s", error->message); g_clear_error (&error); g_object_unref (client); -- cgit v1.2.3