summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2010-03-26 21:12:43 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2010-03-27 23:28:00 +0100
commitd5217348517e6b00a04e500ca460daf6cc928cd9 (patch)
treedf2f7b290a0e660dc3bdd30591cb1cdabdd4565a /bus
parent2575b946ffc8549f1ae2f7856beea566ce3d43c6 (diff)
downloaddbus-d5217348517e6b00a04e500ca460daf6cc928cd9.tar.gz
Cleaned up _dbus_verbose calls: function names and code line numbers are printed by default.
Diffstat (limited to 'bus')
-rw-r--r--bus/connection.c10
-rw-r--r--bus/dispatch.c43
-rw-r--r--bus/expirelist.c2
3 files changed, 27 insertions, 28 deletions
diff --git a/bus/connection.c b/bus/connection.c
index b2d6aa57..8ccae769 100644
--- a/bus/connection.c
+++ b/bus/connection.c
@@ -839,7 +839,7 @@ expire_incomplete_timeout (void *data)
{
BusConnections *connections = data;
- _dbus_verbose ("Running %s\n", _DBUS_FUNCTION_NAME);
+ _dbus_verbose ("Running\n");
/* note that this may remove the timeout */
bus_connections_expire_incomplete (connections);
@@ -1632,7 +1632,7 @@ cancel_pending_reply (void *data)
{
CancelPendingReplyData *d = data;
- _dbus_verbose ("%s: d = %p\n", _DBUS_FUNCTION_NAME, d);
+ _dbus_verbose ("d = %p\n", d);
if (!bus_expire_list_remove (d->connections->pending_replies,
&d->pending->expire_item))
@@ -1646,7 +1646,7 @@ cancel_pending_reply_data_free (void *data)
{
CancelPendingReplyData *d = data;
- _dbus_verbose ("%s: d = %p\n", _DBUS_FUNCTION_NAME, d);
+ _dbus_verbose ("d = %p\n", d);
/* d->pending should be either freed or still
* in the list of pending replies (owned by someone
@@ -1783,7 +1783,7 @@ cancel_check_pending_reply (void *data)
{
CheckPendingReplyData *d = data;
- _dbus_verbose ("%s: d = %p\n", _DBUS_FUNCTION_NAME, d);
+ _dbus_verbose ("d = %p\n",d);
bus_expire_list_add_link (d->connections->pending_replies,
d->link);
@@ -1795,7 +1795,7 @@ check_pending_reply_data_free (void *data)
{
CheckPendingReplyData *d = data;
- _dbus_verbose ("%s: d = %p\n", _DBUS_FUNCTION_NAME, d);
+ _dbus_verbose ("d = %p\n",d);
if (d->link != NULL)
{
diff --git a/bus/dispatch.c b/bus/dispatch.c
index afb85a73..d4c69dc4 100644
--- a/bus/dispatch.c
+++ b/bus/dispatch.c
@@ -752,8 +752,7 @@ check_no_leftovers (BusContext *context)
if (nmd.failed)
{
- _dbus_verbose ("%s: leftover message found\n",
- _DBUS_FUNCTION_NAME);
+ _dbus_verbose ("leftover message found\n");
return FALSE;
}
else
@@ -977,7 +976,7 @@ check_hello_message (BusContext *context,
retval = TRUE;
out:
- _dbus_verbose ("ending %s retval = %d\n", _DBUS_FUNCTION_NAME, retval);
+ _dbus_verbose ("ending - retval = %d\n", retval);
dbus_error_free (&error);
@@ -1033,7 +1032,7 @@ check_double_hello_message (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
dbus_connection_unref (connection);
@@ -1135,7 +1134,7 @@ check_get_connection_unix_user (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
dbus_connection_unref (connection);
@@ -1272,7 +1271,7 @@ check_get_connection_unix_process_id (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
dbus_connection_unref (connection);
@@ -1435,7 +1434,7 @@ check_add_match_all (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
dbus_connection_unref (connection);
@@ -1446,7 +1445,7 @@ check_add_match_all (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
dbus_connection_unref (connection);
@@ -1615,7 +1614,7 @@ check_nonexistent_service_no_auto_start (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -1707,7 +1706,7 @@ check_nonexistent_service_auto_start (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -2487,7 +2486,7 @@ check_existent_service_no_auto_start (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -2709,7 +2708,7 @@ check_segfault_service_no_auto_start (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -2810,7 +2809,7 @@ check_segfault_service_auto_start (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -3129,7 +3128,7 @@ check_existent_service_auto_start (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -3314,7 +3313,7 @@ check_launch_service_file_missing (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -3410,7 +3409,7 @@ check_launch_service_user_missing (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_warn ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_warn ("connection was disconnected\n");
return TRUE;
}
@@ -3506,7 +3505,7 @@ check_launch_service_exec_missing (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_warn ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_warn ("connection was disconnected\n");
return TRUE;
}
@@ -3610,7 +3609,7 @@ check_launch_service_service_missing (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_warn ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_warn ("connection was disconnected\n");
return TRUE;
}
@@ -3713,7 +3712,7 @@ check_shell_fail_service_auto_start (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -3817,7 +3816,7 @@ check_shell_service_success_auto_start (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
@@ -4097,7 +4096,7 @@ check_get_services (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
dbus_connection_unref (connection);
@@ -4259,7 +4258,7 @@ check_list_services (BusContext *context,
if (!dbus_connection_get_is_connected (connection))
{
- _dbus_verbose ("connection was disconnected: %s %d\n", _DBUS_FUNCTION_NAME, __LINE__);
+ _dbus_verbose ("connection was disconnected\n");
return TRUE;
}
diff --git a/bus/expirelist.c b/bus/expirelist.c
index d957536d..946a615c 100644
--- a/bus/expirelist.c
+++ b/bus/expirelist.c
@@ -218,7 +218,7 @@ expire_timeout_handler (void *data)
{
BusExpireList *list = data;
- _dbus_verbose ("Running %s\n", _DBUS_FUNCTION_NAME);
+ _dbus_verbose ("Running\n");
/* note that this may remove the timeout */
bus_expirelist_expire (list);