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,
}
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)
{
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",
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;
}
"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)