From 307943f23d8bc461148f33ece340a0f1bb141c80 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 16 Jun 2006 19:04:52 +0200 Subject: [PATCH] oping: Print the error message if ping_send failes. --- src/oping.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oping.c b/src/oping.c index 8bc119e..63de917 100644 --- a/src/oping.c +++ b/src/oping.c @@ -372,7 +372,8 @@ int main (int argc, char **argv) if (ping_send (ping) < 0) { - fprintf (stderr, "ping_send failed\n"); + fprintf (stderr, "ping_send failed: %s\n", + ping_get_error (ping)); return (1); } -- 2.30.2