mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
Improve logging:
- don't hardcode function name - use LOG_DEBUG for such a debug message - print error value
This commit is contained in:
parent
e278f44bb5
commit
c0ba290b5f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227832
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user