Proposal: Unify printing the function name in panic messages()

Christoph Mallon christoph.mallon at gmx.de
Sun Mar 3 13:02:55 UTC 2013


Hi,

here's an updated patch series, which replaces all panic() calls, except for the places, which have their own stuff, like sys/boot/:
	http://tron.homeunix.org/zeug/FreeBSD/panic/
For now, PANIC() prints the function name.
This is the most common location information used by panic() users.
It can easily be changed in sys/systm.h, where the macro PANIC() is defined.
I added the option PANIC_LOCATION.
I would like to enable it by default, so it has to be deactivated explicitly.
How can this be achieved?
Please test this stuff.

	Christoph


More information about the freebsd-arch mailing list