git: 9507d03bfe02 - main - IfAPI: Use the ifnet APIs in kern_poll()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Jan 2023 20:03:18 UTC
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=9507d03bfe029c61f78854ed8579bda0e5620982 commit 9507d03bfe029c61f78854ed8579bda0e5620982 Author: Justin Hibbits <jhibbits@FreeBSD.org> AuthorDate: 2023-01-24 21:27:24 +0000 Commit: Justin Hibbits <jhibbits@FreeBSD.org> CommitDate: 2023-01-31 20:02:16 +0000 IfAPI: Use the ifnet APIs in kern_poll() The only API used is if_name(). Sponsored by: Juniper Networks, Inc. --- sys/kern/kern_poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c index fd1a30f0851f..8232f98f59ef 100644 --- a/sys/kern/kern_poll.c +++ b/sys/kern/kern_poll.c @@ -506,7 +506,7 @@ ether_poll_register(poll_handler_t *h, if_t ifp) if (pr[i].ifp == ifp && pr[i].handler != NULL) { mtx_unlock(&poll_mtx); log(LOG_DEBUG, "ether_poll_register: %s: handler" - " already registered\n", ifp->if_xname); + " already registered\n", if_name(ifp)); return (EEXIST); } @@ -536,7 +536,7 @@ ether_poll_deregister(if_t ifp) break; if (i == poll_handlers) { log(LOG_DEBUG, "ether_poll_deregister: %s: not found!\n", - ifp->if_xname); + if_name(ifp)); mtx_unlock(&poll_mtx); return (ENOENT); }