From: sf Date: Sun, 4 May 2014 18:18:36 +0000 (+0000) Subject: format string fix for bus_space_tag_t X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8970610a3f4d305c6c5e96c0daf7ec734a9d9bd6;p=openbsd 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@ --- 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); }