diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-06 09:59:35 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-06 09:59:35 +0000 |
commit | 24fd07ebe66c56430ca8a752ad1703d29c2f9da4 (patch) | |
tree | 01f73c02f158a07993e599f685a6358f3e9c0b42 /net.c | |
parent | 08b2347039b80b7362c517459723c0c4fdebfd37 (diff) | |
download | rsyslog-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |