Page MenuHomeFreeBSD

bhyve: add wrapper for debug printf statements
ClosedPublic

Authored by vmaffione on Dec 3 2019, 10:26 PM.
Tags
None
Referenced Files
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
Unknown Object (File)
Sep 24 2024, 7:16 PM
Unknown Object (File)
Sep 24 2024, 4:13 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #65182)

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
15 ↗(On Diff #65330)

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
15 ↗(On Diff #65330)

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.