Page MenuHomeFreeBSD

bhyve: add wrapper for debug printf statements
ClosedPublic

Authored by vmaffione on Dec 3 2019, 10:26 PM.
Tags
None
Referenced Files
F102460585: D22657.diff
Tue, Nov 12, 2:39 PM
Unknown Object (File)
Fri, Nov 8, 2:43 PM
Unknown Object (File)
Thu, Oct 31, 10:14 PM
Unknown Object (File)
Sep 25 2024, 8:30 PM
Unknown Object (File)
Sep 25 2024, 1:37 PM
Unknown Object (File)
Sep 25 2024, 1:28 PM
Unknown Object (File)
Sep 25 2024, 1:27 PM
Unknown Object (File)
Sep 25 2024, 1:23 PM

Details

Summary

A wrapper to use CR/CRLF terminators depending on the situation.
Try to use the wrapper everywhere.
For now we leave the custom DPRINTF/WPRINTF defined by device models.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Can you first revert the wrong change, which cleans this up by not doing the deletes of \n\r that was added by that diff.

usr.sbin/bhyve/debug.h
5

Please remove the All rights reserved, it is not needed or desired.

Removed "all rights reserved" line.
Fix multi-line debug logs in pci_xhci.c, splitting them into multiple PRINTLN() statements.

grehan added a subscriber: grehan.

A worthwhile change.

usr.sbin/bhyve/debug.h
16

You might want to put "THE AUTHOR" here instead of NETAPP :)

This revision is now accepted and ready to land.Jan 7 2020, 9:53 PM
vmaffione marked an inline comment as done.
  • Aligned to current head.
  • Fixed header in debug.h
This revision now requires review to proceed.Jan 7 2020, 10:29 PM
usr.sbin/bhyve/debug.h
16

Very good point, thanks :)

This revision is now accepted and ready to land.Jan 7 2020, 10:39 PM
This revision was automatically updated to reflect the committed changes.