aboutsummaryrefslogtreecommitdiffstats
path: root/extras/libmemif/examples
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2018-09-05 12:11:35 +0200
committerDamjan Marion <dmarion@me.com>2018-09-07 07:28:17 +0000
commit568cc4674e91bf1a4b6c7bf2a5889f38d08135a9 (patch)
treedcc2e8fc4b6cc8daac58b00bddfd9b43b5c8aa61 /extras/libmemif/examples
parent66bff59f7c8873e7f959e147cb69a731b4914edb (diff)
libmemif: slave connecting bugfix
in case first connecting slave fails continue connecting others add disconnect string to memif details Change-Id: I9d83db4724de1cab60786dca566e004016cf1e59 Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'extras/libmemif/examples')
-rw-r--r--extras/libmemif/examples/icmp_responder-epoll/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/libmemif/examples/icmp_responder-epoll/main.c b/extras/libmemif/examples/icmp_responder-epoll/main.c
index 70095ddfed5..02414fa25be 100644
--- a/extras/libmemif/examples/icmp_responder-epoll/main.c
+++ b/extras/libmemif/examples/icmp_responder-epoll/main.c
@@ -212,7 +212,10 @@ print_memif_details ()
if (md.link_up_down)
printf ("up\n");
else
- printf ("down\n");
+ {
+ printf ("down\n");
+ printf ("\treason: %s\n", md.error);
+ }
}
free (buf);
}