summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46b8748)
raw | patch | inline | side by side (parent: 46b8748)
author | octo <octo> | |
Mon, 17 Apr 2006 08:51:44 +0000 (08:51 +0000) | ||
committer | octo <octo> | |
Mon, 17 Apr 2006 08:51:44 +0000 (08:51 +0000) |
src/ping.c | patch | blob | history |
diff --git a/src/ping.c b/src/ping.c
index d82ce06e3fea93bf8c0ea0e20527577b3ca3aa1a..91e0dbcc01072fd7601695349f08684adcd53523 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
{
if ((pingobj = ping_construct ()) == NULL)
{
- syslog (LOG_ERR, "ping: `ping_construct' failed.\n");
+ syslog (LOG_ERR, "ping: `ping_construct' failed: %s",
+ ping_get_error (pingobj));
return (1);
}
}
{
if (ping_host_add (pingobj, value) < 0)
{
- syslog (LOG_WARNING, "ping: `ping_host_add' failed.");
+ syslog (LOG_WARNING, "ping: `ping_host_add' failed: %s",
+ ping_get_error (pingobj));
return (1);
}
}
if (ping_send (pingobj) < 0)
{
- syslog (LOG_ERR, "ping: `ping_send' failed.");
+ syslog (LOG_ERR, "ping: `ping_send' failed: %s",
+ ping_get_error (pingobj));
return;
}