summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-06 09:59:35 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-06 09:59:35 +0000
commit24fd07ebe66c56430ca8a752ad1703d29c2f9da4 (patch)
tree01f73c02f158a07993e599f685a6358f3e9c0b42 /net.c
parent08b2347039b80b7362c517459723c0c4fdebfd37 (diff)
downloadrsyslog-24fd07ebe66c56430ca8a752ad1703d29c2f9da4.tar.gz
rsyslog-24fd07ebe66c56430ca8a752ad1703d29c2f9da4.tar.xz
rsyslog-24fd07ebe66c56430ca8a752ad1703d29c2f9da4.zip
(tried to) fix logerror() call under BSD (but can not yet compile, so this
may be an error...)
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net.c b/net.c
index 43c30b53..103d975c 100644
--- a/net.c
+++ b/net.c
@@ -195,7 +195,7 @@ static rsRetVal AddAllowedSender(struct AllowedSenders **ppRoot, struct AllowedS
switch (iAllow->addr.NetAddr->sa_family) {
case AF_INET:
if((iSignificantBits < 1) || (iSignificantBits > 32)) {
- errmsg.LogError(NO_ERRCODE, "Invalid bit number in IPv4 address - adjusted to 32",
+ errmsg.LogError(NO_ERRCODE, "Invalid number of bits (%d) in IPv4 address - adjusted to 32",
(int)iSignificantBits);
iSignificantBits = 32;
}
@@ -204,7 +204,7 @@ static rsRetVal AddAllowedSender(struct AllowedSenders **ppRoot, struct AllowedS
break;
case AF_INET6:
if((iSignificantBits < 1) || (iSignificantBits > 128)) {
- errmsg.LogError(NO_ERRCODE, "Invalid bit number in IPv6 address - adjusted to 128",
+ errmsg.LogError(NO_ERRCODE, "Invalid number of bits (%d) in IPv6 address - adjusted to 128",
iSignificantBits);
iSignificantBits = 128;
}