diff options
author | Mark Johnston <markj@FreeBSD.org> | 2021-03-05 23:07:47 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2021-03-12 17:20:59 +0000 |
commit | 2b0aa5833c26b8a97f020ac39451de247ac6b4e9 (patch) | |
tree | 8ceb4a9a3242afb0e52b6c45cfa8d506182ca98c | |
parent | 5e7c99c005b34f96ec0e5f8ad43935c87328291a (diff) | |
download | src-2b0aa5833c26b8a97f020ac39451de247ac6b4e9.tar.gz src-2b0aa5833c26b8a97f020ac39451de247ac6b4e9.zip |
netmap: Stop printing a line to the dmesg in netmap_init()
netmap is compiled into the kernel by default so initialization was
always reported, and netmap uses a formatting convention not used in the
rest of the kernel.
Reviewed by: vmaffione
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29099
(cherry picked from commit fef845097190f0ecb783d6c75a9398c4e4a4c0e1)
-rw-r--r-- | sys/dev/netmap/netmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/netmap/netmap.c b/sys/dev/netmap/netmap.c index b711e0d2497e..f37900712046 100644 --- a/sys/dev/netmap/netmap.c +++ b/sys/dev/netmap/netmap.c @@ -4347,7 +4347,9 @@ netmap_init(void) if (error) goto fail; +#if !defined(__FreeBSD__) || defined(KLD_MODULE) nm_prinf("netmap: loaded module"); +#endif return (0); fail: netmap_fini(); |