From 5502a8e0c688f637d760869f3f158bf2fb320078 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Thu, 8 May 2014 18:09:23 +0000 Subject: Format string fix in disabled code. Format bus_space_handle_t with %xl, cast bus_space_tag_t to (u_long) --- sys/dev/pci/ahc_pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/ahc_pci.c b/sys/dev/pci/ahc_pci.c index 1c2e1084109..75851c17456 100644 --- a/sys/dev/pci/ahc_pci.c +++ b/sys/dev/pci/ahc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahc_pci.c,v 1.55 2011/07/17 22:46:48 matthew Exp $ */ +/* $OpenBSD: ahc_pci.c,v 1.56 2014/05/08 18:09:22 sf Exp $ */ /* $NetBSD: ahc_pci.c,v 1.43 2003/08/18 09:16:22 taca Exp $ */ /* @@ -42,7 +42,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. * - * $Id: ahc_pci.c,v 1.55 2011/07/17 22:46:48 matthew Exp $ + * $Id: ahc_pci.c,v 1.56 2014/05/08 18:09:22 sf Exp $ * * //depot/aic7xxx/aic7xxx/aic7xxx_pci.c#57 $ * @@ -793,8 +793,8 @@ ahc_pci_attach(parent, self, aux) ioh_valid = (pci_mapreg_map(pa, AHC_PCI_IOADDR, PCI_MAPREG_TYPE_IO, 0, &iot, &ioh, NULL, NULL, 0) == 0); #if 0 - printf("%s: mem mapping: memt 0x%x, memh 0x%x, iot 0x%x, ioh 0x%lx\n", - ahc_name(ahc), memt, (u_int32_t)memh, (u_int32_t)iot, ioh); + printf("%s: mem mapping: memt 0x%lx, memh 0x%lx, iot 0x%lx, ioh 0x%lx\n", + ahc_name(ahc), (u_long)memt, memh, (u_long)iot, ioh); #endif if (ioh_valid) { -- cgit v1.2.3