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, May 8, 3:31 PM
Unknown Object (File)
Wed, May 8, 3:31 PM
Unknown Object (File)
Wed, May 8, 3:26 PM
Unknown Object (File)
Wed, May 8, 3:26 PM
Unknown Object (File)
Wed, May 8, 3:26 PM
Unknown Object (File)
Fri, May 3, 9:44 PM
Unknown Object (File)
Thu, May 2, 12:16 AM
Unknown Object (File)
Thu, May 2, 12:16 AM

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.