summaryrefslogtreecommitdiff
path: root/test/test-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-service.c')
-rw-r--r--test/test-service.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test-service.c b/test/test-service.c
index 52ea3833..34bedb2d 100644
--- a/test/test-service.c
+++ b/test/test-service.c
@@ -61,7 +61,7 @@ check_hello_from_self_reply (DBusPendingCall *pcall,
if (type == DBUS_MESSAGE_TYPE_METHOD_RETURN)
{
const char *s;
- printf ("Reply from HelloFromSelf received\n");
+ fprintf (stderr, "Reply from HelloFromSelf received\n");
if (!dbus_message_get_args (echo_message,
&error,
@@ -95,7 +95,7 @@ check_hello_from_self_reply (DBusPendingCall *pcall,
}
else if (dbus_set_error_from_message (&error, reply))
{
- printf ("Error type in reply: %s\n", error.message);
+ fprintf (stderr, "Error type in reply: %s\n", error.message);
if (strcmp (error.name, DBUS_ERROR_NO_MEMORY) != 0)
{
@@ -156,7 +156,7 @@ handle_run_hello_from_self (DBusConnection *connection,
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
- printf ("Sending HelloFromSelf\n");
+ fprintf (stderr, "Sending HelloFromSelf\n");
_dbus_verbose ("*** Sending message to self\n");
self_message = dbus_message_new_method_call ("org.freedesktop.DBus.TestSuiteEchoService",
@@ -174,7 +174,7 @@ handle_run_hello_from_self (DBusConnection *connection,
if (!dbus_pending_call_set_notify (pcall, check_hello_from_self_reply, (void *)message, NULL))
die("No memory");
- printf ("Sent HelloFromSelf\n");
+ fprintf (stderr, "Sent HelloFromSelf\n");
return DBUS_HANDLER_RESULT_HANDLED;
}
@@ -351,7 +351,7 @@ path_message_func (DBusConnection *connection,
"HelloFromSelf"))
{
DBusMessage *reply;
- printf ("Received the HelloFromSelf message\n");
+ fprintf (stderr, "Received the HelloFromSelf message\n");
reply = dbus_message_new_method_return (message);
if (reply == NULL)