diff options
author | glebius <glebius@FreeBSD.org> | 2011-11-22 19:42:17 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-11-22 19:42:17 +0000 |
commit | ec7618f8d24b096f40d91b4f16a82d694dfd8ac7 (patch) | |
tree | 7392e0f41f301e45924d442fb5c436d072dc5102 /sys/net/if.c | |
parent | 4e2f5ddf34cd21f6b30d66f9ba8ccc02630d00eb (diff) | |
download | FreeBSD-src-ec7618f8d24b096f40d91b4f16a82d694dfd8ac7.zip FreeBSD-src-ec7618f8d24b096f40d91b4f16a82d694dfd8ac7.tar.gz |
Improve logging:
- don't hardcode function name
- use LOG_DEBUG for such a debug message
- print error value
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 322759a..8f26279 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1475,7 +1475,7 @@ ifa_add_loopback_route(struct ifaddr *ifa, struct sockaddr *ia) RT_REMREF(rt); RT_UNLOCK(rt); } else if (error != 0) - log(LOG_INFO, "ifa_add_loopback_route: insertion failed\n"); + log(LOG_DEBUG, "%s: insertion failed: %u\n", __func__, error); return (error); } @@ -1499,7 +1499,7 @@ ifa_del_loopback_route(struct ifaddr *ifa, struct sockaddr *ia) error = rtrequest1_fib(RTM_DELETE, &info, NULL, 0); if (error != 0) - log(LOG_INFO, "ifa_del_loopback_route: deletion failed\n"); + log(LOG_DEBUG, "%s: deletion failed: %u\n", __func__, error); return (error); } |