summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fb16e34)
raw | patch | inline | side by side (parent: fb16e34)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 28 Jan 2010 22:29:25 +0000 (23:29 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 28 Jan 2010 22:29:25 +0000 (23:29 +0100) |
src/ping.c | patch | blob | history |
diff --git a/src/ping.c b/src/ping.c
index de9c45bb38d822f4221065343bc1c7e494e37028..5187e2b7c4e8dca90153c4ebec5f43b3fcd23d9e 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
int tmp_status;
tmp_status = ping_host_add (pingobj, hl->host);
if (tmp_status != 0)
- WARNING ("ping plugin: ping_host_add (%s) failed.", hl->host);
+ WARNING ("ping plugin: ping_host_add (%s) failed: %s",
+ hl->host, ping_get_error (pingobj));
else
status++;
}
if (gettimeofday (&tv_begin, NULL) < 0)
{
- ERROR ("ping plugin: gettimeofday failed");
+ char errbuf[1024];
+ ERROR ("ping plugin: gettimeofday failed: %s",
+ sstrerror (errno, errbuf, sizeof (errbuf)));
ping_thread_error = 1;
break;
}
if (gettimeofday (&tv_end, NULL) < 0)
{
- ERROR ("ping plugin: gettimeofday failed");
+ char errbuf[1024];
+ ERROR ("ping plugin: gettimeofday failed: %s",
+ sstrerror (errno, errbuf, sizeof (errbuf)));
ping_thread_error = 1;
break;
}