From 8970610a3f4d305c6c5e96c0daf7ec734a9d9bd6 Mon Sep 17 00:00:00 2001 From: sf Date: Sun, 4 May 2014 18:18:36 +0000 Subject: [PATCH] format string fix for bus_space_tag_t bus_space_tag_t is a pointer everywhere, except on i386, where it's an int. Cast to long. ok kettenis@ 'Right idiom' deraadt@ --- sys/dev/ipmi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index b98d775c680..44451b9e584 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.69 2013/07/03 15:10:57 bluhm Exp $ */ +/* $OpenBSD: ipmi.c,v 1.70 2014/05/04 18:18:36 sf Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -1578,9 +1578,9 @@ ipmi_map_regs(struct ipmi_softc *sc, struct ipmi_attach_args *ia) if (bus_space_map(sc->sc_iot, ia->iaa_if_iobase, sc->sc_if->nregs * sc->sc_if_iospacing, 0, &sc->sc_ioh)) { - printf("%s: bus_space_map(%x %x %x 0 %p) failed\n", + printf("%s: bus_space_map(%lx %x %x 0 %p) failed\n", DEVNAME(sc), - sc->sc_iot, ia->iaa_if_iobase, + (unsigned long)sc->sc_iot, ia->iaa_if_iobase, sc->sc_if->nregs * sc->sc_if_iospacing, &sc->sc_ioh); return (-1); } -- 2.20.1