summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2011-01-14 19:30:30 -0800
committerStef Walter <stef@memberwebs.com>2011-01-14 19:30:30 -0800
commitc4f85dfd44f65dacd62044857d0cfe284c0907f6 (patch)
tree8ddb484ec6e8b797f4cb632eecf7148cff4c01ca
parentc5e4d8f7886085d6ac1858d6cd00f7affdbf8491 (diff)
Better message when can't listen on a port.
-rw-r--r--common/snmp-engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/snmp-engine.c b/common/snmp-engine.c
index 5078d39..f80da6a 100644
--- a/common/snmp-engine.c
+++ b/common/snmp-engine.c
@@ -1058,7 +1058,7 @@ snmp_engine_init (const char **bindaddrs, int retries)
}
if (bind (fd, ai->ai_addr, ai->ai_addrlen) < 0)
- err (1, "couldn't listen on port");
+ err (1, "couldn't listen on port '%s'", bindaddr);
if (server_watch (fd, SERVER_READ, request_response, NULL) == -1)
err (1, "couldn't watch port");