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)
Wed, Dec 11, 5:52 AM
Unknown Object (File)
Nov 17 2024, 7:17 AM
Unknown Object (File)
Nov 14 2024, 1:12 AM
Unknown Object (File)
Nov 12 2024, 2:39 PM
Unknown Object (File)
Nov 8 2024, 2:43 PM
Unknown Object (File)
Oct 31 2024, 10:14 PM
Unknown Object (File)
Sep 25 2024, 8:30 PM
Unknown Object (File)
Sep 25 2024, 1:37 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.