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
F162562194: D49989.diff
Tue, Jul 14, 2:12 PM
Unknown Object (File)
Sat, Jul 4, 10:21 AM
Unknown Object (File)
Tue, Jun 30, 12:16 AM
Unknown Object (File)
May 30 2026, 10:08 AM
Unknown Object (File)
May 30 2026, 12:57 AM
Unknown Object (File)
May 28 2026, 10:24 AM
Unknown Object (File)
Apr 27 2026, 3:57 PM
Unknown Object (File)
Apr 7 2026, 4:56 AM
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