Page MenuHomeFreeBSD

gone_in: make it __printflike()
ClosedPublic

Authored by glebius on Jun 10 2025, 7:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 6, 10:27 PM
Unknown Object (File)
Sun, Jul 6, 4:28 AM
Unknown Object (File)
Sat, Jul 5, 4:28 AM
Unknown Object (File)
Fri, Jul 4, 12:01 AM
Unknown Object (File)
Thu, Jul 3, 11:30 PM
Unknown Object (File)
Tue, Jul 1, 4:21 PM
Unknown Object (File)
Mon, Jun 30, 9:47 PM
Unknown Object (File)
Sun, Jun 29, 1:50 PM
Subscribers

Details

Summary

Provide flexibility to use format strings for gone_in(). As a side
effect, this removes hardcoded string "Obsolete code will be removed
soon:" from the message, so now it is obligation of the deprecated code to
provide a meaningful message. This required a small adoption of the
existing users: midi, drm2 and le(4). Note that gone_in() is not a public
KPI as it has no sense to use it outside of the FreeBSD tree.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp added inline comments.
sys/dev/drm2/drm_os_freebsd.h
161

All this can just be deleted. We *ONLY* use this on arm these days.... And it's not deprecated there, eh? It will go away when armv7 goes away.

sys/dev/le/lance.c
197

maybe we should just delete this driver, since we've warned it for a while...

sys/dev/sound/midi/sequencer.c
523

I think this is going away.

743

Same, eh?

This revision is now accepted and ready to land.Jun 10 2025, 11:36 PM

I agree that we warned a lot on these two drivers and should remove it. Of course not as port of this revision. Can you please also look at D50784, that depends on this one?

This revision was automatically updated to reflect the committed changes.