]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r356523
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Thu, 20 Feb 2020 21:48:36 +0000 (21:48 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Thu, 20 Feb 2020 21:48:36 +0000 (21:48 +0000)
commitb01e835b854dabb3e7f925b81e69af8c74968abb
tree069bb7d40f7b615c66f2b54b1c4df5a0371fc192
parentd01ee9bff5508c11c7a842b60947b33d38f84458
MFC r356523

bhyve: add wrapper for debug printf statements

Add printf() wrapper to use CR/CRLF terminators depending on whether
stdio is mapped to a tty open in raw mode.
Try to use the wrapper everywhere.
For now we leave the custom DPRINTF/WPRINTF defined by device
models, but we may remove them in the future.

Reviewed by:    grehan, jhb
Differential Revision:  https://reviews.freebsd.org/D22657
29 files changed:
usr.sbin/bhyve/bhyverun.c
usr.sbin/bhyve/block_if.c
usr.sbin/bhyve/bootrom.c
usr.sbin/bhyve/consport.c
usr.sbin/bhyve/debug.h [new file with mode: 0644]
usr.sbin/bhyve/mptbl.c
usr.sbin/bhyve/net_backends.c
usr.sbin/bhyve/net_utils.c
usr.sbin/bhyve/pci_e82545.c
usr.sbin/bhyve/pci_emul.c
usr.sbin/bhyve/pci_fbuf.c
usr.sbin/bhyve/pci_lpc.c
usr.sbin/bhyve/pci_nvme.c
usr.sbin/bhyve/pci_uart.c
usr.sbin/bhyve/pci_virtio_block.c
usr.sbin/bhyve/pci_virtio_console.c
usr.sbin/bhyve/pci_virtio_net.c
usr.sbin/bhyve/pci_virtio_rnd.c
usr.sbin/bhyve/pci_virtio_scsi.c
usr.sbin/bhyve/pci_xhci.c
usr.sbin/bhyve/ps2kbd.c
usr.sbin/bhyve/ps2mouse.c
usr.sbin/bhyve/rfb.c
usr.sbin/bhyve/smbiostbl.c
usr.sbin/bhyve/task_switch.c
usr.sbin/bhyve/uart_emul.c
usr.sbin/bhyve/usb_mouse.c
usr.sbin/bhyve/virtio.c
usr.sbin/bhyve/xmsr.c