summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2007-03-04 14:49:47 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2007-03-04 14:49:47 +0000
commit68ba4bfb19a2adec8ca7ef3f4cc5a654b791f047 (patch)
tree9d7fe3c754dd96fdacdb872c9ec5b902421a3369 /sys/dev/pci
parent1957a371a891e39f2e4f956c4fb10bed28904bb4 (diff)
Fix non AHCI_DEBUG build.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/ahci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c
index a7d2e739d0d..08cec427a88 100644
--- a/sys/dev/pci/ahci.c
+++ b/sys/dev/pci/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.63 2007/03/04 14:46:38 pascoe Exp $ */
+/* $OpenBSD: ahci.c,v 1.64 2007/03/04 14:49:46 pascoe Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -344,6 +344,8 @@ struct ahci_port {
#ifdef AHCI_DEBUG
char ap_name[16];
#define PORTNAME(_ap) ((_ap)->ap_name)
+#else
+#define PORTNAME(_ap) DEVNAME((_ap)->ap_sc)
#endif
};