aboutsummaryrefslogtreecommitdiff
path: root/stand/efi
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2022-04-13 00:29:54 +0000
committerKyle Evans <kevans@FreeBSD.org>2022-04-13 00:30:30 +0000
commit454630c72556d45e401f29f56b3317c2fb0499a0 (patch)
treecb78275a8845e38f678de9b0c9c875266b736fbe /stand/efi
parent613e07c07f3b069eae08d9c5f5642713621c4a43 (diff)
downloadsrc-454630c72556d45e401f29f56b3317c2fb0499a0.tar.gz
src-454630c72556d45e401f29f56b3317c2fb0499a0.zip
stand: libefi: swap /Pci() printing around
Printing device followed by interface matches, e.g., edk2. Note that this is only a fallback, many firmware implementations will provide the protocol that we'll use to format device paths. Reviewed by: imp, tsoome Sponsored by: Ampere Computing Submitted by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D34539
Diffstat (limited to 'stand/efi')
-rw-r--r--stand/efi/libefi/devpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stand/efi/libefi/devpath.c b/stand/efi/libefi/devpath.c
index b56c583b5fa7..c25ae73e463c 100644
--- a/stand/efi/libefi/devpath.c
+++ b/stand/efi/libefi/devpath.c
@@ -146,8 +146,8 @@ efi_hw_dev_path(EFI_DEVICE_PATH *node, char *suffix)
switch (subtype) {
case HW_PCI_DP:
if (asprintf(&name, "Pci(%x,%x)%s",
- ((PCI_DEVICE_PATH *)node)->Function,
- ((PCI_DEVICE_PATH *)node)->Device, tail) < 0)
+ ((PCI_DEVICE_PATH *)node)->Device,
+ ((PCI_DEVICE_PATH *)node)->Function, tail) < 0)
name = NULL;
break;
case HW_PCCARD_DP: