HomeFreeBSD

bhyve: Replace many fprintf(stderr, ...) calls with EPRINTLN

Description

bhyve: Replace many fprintf(stderr, ...) calls with EPRINTLN

EPRINTLN handles newlines appropriately when stdout/stderr have been
reused as the backend for a serial port.

For bhyverun.c itself, the rule this attempts to follow is to use
regular fprintf/perror/warn/err prior to init_pci() (which is when
serial ports are configured) and to switch to EPRINTLN afterwards.

Reviewed by: corvink, markj
Differential Revision: https://reviews.freebsd.org/D42182

(cherry picked from commit b0936440b8fcee523c0b26fdbbef7c3b2b5098bf)

Details

Provenance
jhbAuthored on Oct 16 2023, 10:17 PM
Reviewer
corvink
Differential Revision
D42182: bhyve: Replace many fprintf(stderr, ...) calls with EPRINTLN
Parents
rG0e0d2636d4b1: bhyve ahci: Replace WPRINTF with EPRINTLN
Branches
Unknown
Tags
Unknown