Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
The idea is correct, but implementation is arguably not. TUNABLE_XXX_FETCH() keeps the variable unchanged if the env var is not present. The correct logic would be
textmode = vm_guest != VM_GUEST_NO; TUNABLE_INT_FETCH("hw.vga.textmode", &textmode);
This would give the desired behaviour of enabling textmode by default for guests only, but also allowing user to override it as she wants.
sys/dev/vt/hw/vga/vt_vga.c | ||
---|---|---|
1237 ↗ | (On Diff #14602) | You do not need braces there, and style(9) requests to not put redundand braces. |
sys/dev/vt/hw/vga/vt_vga.c | ||
---|---|---|
1237 ↗ | (On Diff #14602) | OK. I updated the patch. |