From 68ba4bfb19a2adec8ca7ef3f4cc5a654b791f047 Mon Sep 17 00:00:00 2001 From: Christopher Pascoe Date: Sun, 4 Mar 2007 14:49:47 +0000 Subject: Fix non AHCI_DEBUG build. --- sys/dev/pci/ahci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ -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 }; -- cgit v1.2.3