]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add device and ifnet logging methods, similar to device_printf / if_printf
authorAdrian Chadd <adrian@FreeBSD.org>
Sun, 21 Mar 2021 18:49:05 +0000 (18:49 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Mon, 22 Mar 2021 00:02:34 +0000 (00:02 +0000)
commit25bfa448602cac74723115d0b0bd145ac795b685
treedc2749417ac9d73b628b981d4092b15df3bbf351
parent2595d78f3df2ca389aae259a291f93eb06ecad43
Add device and ifnet logging methods, similar to device_printf / if_printf

* device_printf() is effectively a printf
* if_printf() is effectively a LOG_INFO

This allows subsystems to log device/netif stuff using different log levels,
rather than having to invent their own way to prefix unit/netif  names.

Differential Revision: https://reviews.freebsd.org/D29320
Reviewed by: imp
sys/kern/subr_bus.c
sys/net/if.c
sys/net/if_var.h
sys/sys/bus.h