From 5ec7a9372394fe793560b3cbc8b8b26dea75c694 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Tue, 13 Aug 2013 08:56:23 +0000 Subject: - print warnings for failed function calls --- src/testing/gnunet-testing-run-service.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/testing') diff --git a/src/testing/gnunet-testing-run-service.c b/src/testing/gnunet-testing-run-service.c index b967d7385..b58e6c27d 100644 --- a/src/testing/gnunet-testing-run-service.c +++ b/src/testing/gnunet-testing-run-service.c @@ -116,8 +116,10 @@ stdin_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_SCHEDULER_shutdown (); return; case 'r': - (void) GNUNET_TESTING_peer_stop (my_peer); - (void) GNUNET_TESTING_peer_start (my_peer); + if (GNUNET_OK != GNUNET_TESTING_peer_stop (my_peer)) + LOG (GNUNET_ERROR_TYPE_ERROR, "Failed to stop the peer\n"); + if (GNUNET_OK != GNUNET_TESTING_peer_start (my_peer)) + LOG (GNUNET_ERROR_TYPE_ERROR, "Failed to start the peer\n"); printf ("restarted\n"); fflush (stdout); break; -- cgit v1.2.3