diff options
author | Siqi LIU <me@siqi.fr> | 2013-08-01 15:23:19 +0200 |
---|---|---|
committer | Siqi LIU <me@siqi.fr> | 2013-08-01 16:25:49 +0200 |
commit | e32798d63bdf0c9fbcc13df06c4afdfc5b0f4dd5 (patch) | |
tree | bb2e945d6039c576bd536b31aec82390fcf07e10 /sd/source | |
parent | b9d2671ae11d7b7225b3d5b01a5beb733296c085 (diff) |
add new debug area and use SAL_INFO instead for debug info
Change-Id: If719f3340ac585d162e1bb40847ce17e67415869
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/remotecontrol/AvahiNetworkService.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/Receiver.cxx | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sd/source/ui/remotecontrol/AvahiNetworkService.cxx b/sd/source/ui/remotecontrol/AvahiNetworkService.cxx index 2f44cb1bbe46..68354332df12 100644 --- a/sd/source/ui/remotecontrol/AvahiNetworkService.cxx +++ b/sd/source/ui/remotecontrol/AvahiNetworkService.cxx @@ -41,7 +41,7 @@ static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, switch (state) { case AVAHI_ENTRY_GROUP_ESTABLISHED : /* The entry group has been established successfully */ - std::cerr << "Service " << avahiService->getName().c_str() << " successfully established.\n"; + SAL_INFO( "sdremote.wifi", "Service " << avahiService->getName().c_str() << " successfully established." ); break; case AVAHI_ENTRY_GROUP_COLLISION : { @@ -52,7 +52,7 @@ static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, n = avahi_alternative_service_name(avahiService->getName().c_str()); avahiService->setName(n); - std::cerr << "Service name collision, renaming service to " << avahiService->getName() << std::endl; + SAL_INFO( "sdremote.wifi", "Service name collision, renaming service to " << avahiService->getName() ); /* And recreate the services */ create_services(avahi_entry_group_get_client(g)); diff --git a/sd/source/ui/remotecontrol/Receiver.cxx b/sd/source/ui/remotecontrol/Receiver.cxx index 40fc7342a637..f5a7617acb40 100644 --- a/sd/source/ui/remotecontrol/Receiver.cxx +++ b/sd/source/ui/remotecontrol/Receiver.cxx @@ -122,18 +122,19 @@ void Receiver::executeCommand( const std::vector<OString> &aCommand ) else if (aCommand[0].equals( "pointer_started" )) { // xSlideShowController->setPointerMode(true); - std::cerr << "Pointer started, we display the pointer on screen"<< std::endl; + SAL_INFO( "sdremote", "Pointer started, we display the pointer on screen" ); } else if (aCommand[0].equals( "pointer_dismissed" )) { // xSlideShowController->setPointerMode(false); - std::cerr << "Pointer dismissed, we hide the pointer on screen"<< std::endl; + SAL_INFO( "sdremote", "Pointer dismissed, we hide the pointer on screen" ); } else if (aCommand[0].equals( "pointer_coordination" )) { float x = aCommand[1].toFloat(); float y = aCommand[2].toFloat(); - std::cerr << "("<<x<<","<<y<<")"<< std::endl; + + SAL_INFO( "sdremote", "Pointer at ("<<x<<","<<y<<")" ); const ::com::sun::star::geometry::RealPoint2D pos(x,y); // Same problem here... // xSlideShowController->setPointerPosition(pos); |