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)
Thu, Nov 13, 1:17 AM
Unknown Object (File)
Wed, Nov 12, 7:15 PM
Unknown Object (File)
Oct 24 2025, 11:46 PM
Unknown Object (File)
Oct 20 2025, 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
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