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, Oct 20, 1:39 AM
Unknown Object (File)
Sep 18 2025, 9:22 PM
Unknown Object (File)
Aug 30 2025, 3:14 AM
Unknown Object (File)
Aug 25 2025, 9:05 AM
Unknown Object (File)
Aug 23 2025, 9:06 PM
Unknown Object (File)
Jul 26 2025, 4:14 AM
Unknown Object (File)
Jul 12 2025, 9:03 PM
Unknown Object (File)
Jul 6 2025, 12:20 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