Page MenuHomeFreeBSD

Mark errf _Noreturn and mark errf and warn __printflike
ClosedPublic

Authored by ngie on May 13 2017, 8:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 25 2026, 2:44 PM
Unknown Object (File)
Jan 25 2026, 11:14 AM
Unknown Object (File)
Jan 24 2026, 5:15 PM
Unknown Object (File)
Jan 19 2026, 7:00 PM
Unknown Object (File)
Dec 27 2025, 10:55 PM
Unknown Object (File)
Dec 24 2025, 1:01 PM
Unknown Object (File)
Dec 17 2025, 4:54 PM
Unknown Object (File)
Nov 20 2025, 11:52 PM
Subscribers

Details

Summary

Mark errf _Noreturn and mark errf and warn __printflike

The _Noreturn attribute was added to placate Coverity and other static
analysis tools. The __printflike attribute was added to catch issues
with the calls related to printf(3) abuse.

  • Modify the code to facilitate the __printflike attribute addition.
  • Convert errf calls in to_mb(..) and to_mb_string(..) to warn(..) so the calls will return instead of exiting, as the code suggests it should.

MFC after: 1 month
Sponsored by: Dell EMC Isilon

Diff Detail