Skip to content

Commit

Permalink
ohci: Fix x86_64 usb tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
kallisti5 committed Apr 23, 2016
1 parent 78fc8fe commit 3218cf3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/add-ons/kernel/busses/usb/ohci.cpp
Expand Up @@ -119,9 +119,10 @@ OHCI::OHCI(pci_info *info, Stack *stack)

// Check the revision of the controller, which should be 10h
uint32 revision = _ReadReg(OHCI_REVISION) & 0xff;
TRACE("version %ld.%ld%s\n", OHCI_REVISION_HIGH(revision),
OHCI_REVISION_LOW(revision), OHCI_REVISION_LEGACY(revision)
? ", legacy support" : "");
TRACE("version %" B_PRId32 ".%" B_PRId32 "%s\n",
OHCI_REVISION_HIGH(revision), OHCI_REVISION_LOW(revision),
OHCI_REVISION_LEGACY(revision) ? ", legacy support" : "");

if (OHCI_REVISION_HIGH(revision) != 1 || OHCI_REVISION_LOW(revision) != 0) {
TRACE_ERROR("unsupported OHCI revision\n");
return;
Expand Down

0 comments on commit 3218cf3

Please sign in to comment.