diff options
author | Jeremie Corbier <jeremie.corbier@resel.enst-bretagne.fr> | 2010-03-25 10:07:03 +0100 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2010-08-06 15:37:37 +0200 |
commit | aeedae61d12778c4428a7e266913221269480162 (patch) | |
tree | 023ce3b78a8d62a129032fc6028d457f5e9199c1 /lease.c | |
parent | 2fa86d0c611b69e175c3b07116e9b67b85fe20ef (diff) |
102_libc6-2.9-fixes.diff from the Debian package version 20080615-8:
"Fixes for recent libc releases."
[ignoring changes to the build generated cftoken.c file]
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'lease.c')
-rw-r--r-- | lease.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -93,7 +93,7 @@ static struct hash_entry * hash_table_find __P((struct hash_table *, void *)); int lease_init(void) { - dprintf(LOG_DEBUG, FNAME, "called"); + debug_printf(LOG_DEBUG, FNAME, "called"); if (hash_table_init(&dhcp6_lease_table, DHCP6_LEASE_TABLE_SIZE, in6_addr_hash, in6_addr_match) != 0) { @@ -116,10 +116,10 @@ lease_address(addr) if (!addr) return (FALSE); - dprintf(LOG_DEBUG, FNAME, "addr=%s", in6addr2str(addr, 0)); + debug_printf(LOG_DEBUG, FNAME, "addr=%s", in6addr2str(addr, 0)); if (hash_table_find(&dhcp6_lease_table, addr)) { - dprintf(LOG_WARNING, FNAME, "already leased: %s", + debug_printf(LOG_WARNING, FNAME, "already leased: %s", in6addr2str(addr, 0)); return (FALSE); } @@ -138,10 +138,10 @@ release_address(addr) if (!addr) return; - dprintf(LOG_DEBUG, FNAME, "addr=%s", in6addr2str(addr, 0)); + debug_printf(LOG_DEBUG, FNAME, "addr=%s", in6addr2str(addr, 0)); if (hash_table_remove(&dhcp6_lease_table, addr) != 0) { - dprintf(LOG_WARNING, FNAME, "not found: %s", in6addr2str(addr, 0)); + debug_printf(LOG_WARNING, FNAME, "not found: %s", in6addr2str(addr, 0)); } } @@ -154,11 +154,11 @@ decline_address(addr) if (!addr) return; - dprintf(LOG_DEBUG, FNAME, "addr=%s", in6addr2str(addr, 0)); + debug_printf(LOG_DEBUG, FNAME, "addr=%s", in6addr2str(addr, 0)); entry = hash_table_find(&dhcp6_lease_table, addr); if (entry == NULL) { - dprintf(LOG_WARNING, FNAME, "not found: %s", + debug_printf(LOG_WARNING, FNAME, "not found: %s", in6addr2str(addr, 0)); return; } |