HomeFreeBSD

Add device and ifnet logging methods, similar to device_printf / if_printf

Description

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

(cherry picked from commit 25bfa448602cac74723115d0b0bd145ac795b685)

Details

Provenance
adrianAuthored on Mar 21 2021, 6:49 PM
jhbCommitted on Jan 24 2023, 4:42 AM
Reviewer
imp
Differential Revision
D29320: Add log() style versions of device_printf() and if_printf()
Parents
rGac44dcce625e: smc: Rename constants for control register from CTR* to CTRL*.
Branches
Unknown
Tags
Unknown