[gnome-keyring/wip/cosimoc/gdbus-fixes: 11/11] dbus: fix warning messages syntax
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/wip/cosimoc/gdbus-fixes: 11/11] dbus: fix warning messages syntax
- Date: Sat, 29 Aug 2015 16:55:40 +0000 (UTC)
commit 04cef4e869bdb839a2f50aed8870611b8fdb6809
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Aug 29 08:36:58 2015 -0700
dbus: fix warning messages syntax
Use %s instead of %p for strings, to get a more useful output.
daemon/dbus/gkd-secret-objects.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-objects.c b/daemon/dbus/gkd-secret-objects.c
index 0adf315..995c930 100644
--- a/daemon/dbus/gkd-secret-objects.c
+++ b/daemon/dbus/gkd-secret-objects.c
@@ -1488,7 +1488,7 @@ gkd_secret_objects_register_item (GkdSecretObjects *self,
skeleton = g_hash_table_lookup (self->items_to_skeletons, item_path);
if (skeleton != NULL) {
- g_warning ("asked to register item %p, but it's already registered", item_path);
+ g_warning ("asked to register item %s, but it's already registered", item_path);
return;
}
@@ -1516,7 +1516,7 @@ gkd_secret_objects_unregister_item (GkdSecretObjects *self,
const gchar *item_path)
{
if (!g_hash_table_remove (self->items_to_skeletons, item_path)) {
- g_warning ("asked to unregister item %p, but it wasn't found", item_path);
+ g_warning ("asked to unregister item %s, but it wasn't found", item_path);
return;
}
}
@@ -1620,7 +1620,7 @@ gkd_secret_objects_register_collection (GkdSecretObjects *self,
skeleton = g_hash_table_lookup (self->collections_to_skeletons, collection_path);
if (skeleton != NULL) {
- g_warning ("asked to register collection %p, but it's already registered", collection_path);
+ g_warning ("asked to register collection %s, but it's already registered", collection_path);
return;
}
@@ -1650,7 +1650,7 @@ gkd_secret_objects_unregister_collection (GkdSecretObjects *self,
const gchar *collection_path)
{
if (!g_hash_table_remove (self->collections_to_skeletons, collection_path)) {
- g_warning ("asked to unregister collection %p, but it wasn't found", collection_path);
+ g_warning ("asked to unregister collection %s, but it wasn't found", collection_path);
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]