summaryrefslogtreecommitdiffstats
path: root/icnet/ccnx/icnet_ccnx_portal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'icnet/ccnx/icnet_ccnx_portal.cc')
-rw-r--r--icnet/ccnx/icnet_ccnx_portal.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/icnet/ccnx/icnet_ccnx_portal.cc b/icnet/ccnx/icnet_ccnx_portal.cc
index 99e2ee7f..33e8c82f 100644
--- a/icnet/ccnx/icnet_ccnx_portal.cc
+++ b/icnet/ccnx/icnet_ccnx_portal.cc
@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#ifdef __ANDROID__
+#include <android/log.h>
+#endif
#include "icnet_ccnx_portal.h"
@@ -135,9 +138,17 @@ void Portal::processControlMessage(CCNxMetaMessage *response) {
CCNxControl *control_message = ccnxMetaMessage_GetControl(response);
if (ccnxControl_IsACK(control_message)) {
+#ifdef __ANDROID__
+ __android_log_print(ANDROID_LOG_DEBUG, "libICNet", "Route set correctly!\n");
+#else
std::cout << "Route set correctly!" << std::endl;
+#endif
} else {
+#ifdef __ANDROID__
+ __android_log_print(ANDROID_LOG_DEBUG, "libICNet", "Failed to set the route.\n");
+#else
std::cout << "Failed to set the route." << std::endl;
+#endif
}
}