Functions tend to get renamed and unless the developer is careful often
debugging messages are missed. As such using func is far superior.
Replace several instances of hard-coded function names.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Simply some cleanup. While working with this file I observed several functions hard-coding their names into messages.
Comment Actions
If you are going to make changes to these KASSERTS, I feel it would be better if they had a consistent format of: __func__: message
sys/x86/xen/xen_intr.c | ||
---|---|---|
1279–1281 | FreeBSD's style(9) prefers error != 0. Dropping the braces is fine. |
Comment Actions
I don't have a strong opinion on the rewording of the assert messages. @mhorne would you be OK if I commit this with the fixed error != 0 check?