Page MenuHomeFreeBSD

LinuxKPI: pr_err_once / pr_warn_once prefix with __FILE__ and __LINE__
Needs ReviewPublic

Authored by bz on Apr 23 2025, 11:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 10, 7:13 PM
Unknown Object (File)
Mon, Aug 10, 8:45 AM
Unknown Object (File)
Sun, Aug 9, 11:15 PM
Unknown Object (File)
Tue, Aug 4, 6:12 AM
Unknown Object (File)
Sun, Aug 2, 5:52 AM
Unknown Object (File)
Tue, Jul 28, 8:13 AM
Unknown Object (File)
Fri, Jul 24, 7:01 PM
Unknown Object (File)
Jul 14 2026, 2:12 PM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

Pull together all the pr_*_once() functions we currently support.
For err and warn add a "%s:%d ", FILE, LINE prefix to the log
entry to make it more valuable. Some drivers use the function with
the same log message multiple times.

Leave info(rmational) messages alone as we print them for, e.g. driver
versions etc.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 63685
Build 60569: arc lint + arc unit