summaryrefslogtreecommitdiff
path: root/usr.sbin/pcidump
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2021-01-17 11:54:16 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2021-01-17 11:54:16 +0000
commitd4467bfdb8fd5b7da24f5c9337e5e0c64b3b600a (patch)
tree4e052565565da6597d48400a7175d0299b627008 /usr.sbin/pcidump
parentd831b9bd57345132c741ee27d3e43f86cc56b1dc (diff)
revert the previous, it makes everything think it can do 16.0 GT/s.
i'll have to find real pci4 hardware to test with.
Diffstat (limited to 'usr.sbin/pcidump')
-rw-r--r--usr.sbin/pcidump/pcidump.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/pcidump/pcidump.c b/usr.sbin/pcidump/pcidump.c
index 10d3634952b..0e54108be48 100644
--- a/usr.sbin/pcidump/pcidump.c
+++ b/usr.sbin/pcidump/pcidump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcidump.c,v 1.60 2021/01/17 11:38:18 dlg Exp $ */
+/* $OpenBSD: pcidump.c,v 1.61 2021/01/17 11:54:15 dlg Exp $ */
/*
* Copyright (c) 2006, 2007 David Gwynne <loki@animata.net>
@@ -510,9 +510,7 @@ pcie_dcsr_mrrs(uint32_t dcsr)
void
print_pcie_ls(uint8_t speed)
{
- if (speed & 5)
- printf("16.0");
- else if (speed & 4)
+ if (speed & 4)
printf("8.0");
else if (speed & 2)
printf("5.0");