summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-08-30 14:42:06 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-08-30 14:42:06 +0000
commit065ea7745b882b8e7f2754cf26987100c384513c (patch)
tree721b8a4acc40b6956319673621a48abd3abcf490 /sys
parentf72cc703a34874ec6697564c0b30844b65e449a8 (diff)
Fix format strings in STIDEBUG code.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/dev/sti_sgc.c4
-rw-r--r--sys/dev/ic/sti.c12
-rw-r--r--sys/dev/pci/sti_pci.c4
3 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/hppa/dev/sti_sgc.c b/sys/arch/hppa/dev/sti_sgc.c
index d7c4a3e9c6f..5e70251b142 100644
--- a/sys/arch/hppa/dev/sti_sgc.c
+++ b/sys/arch/hppa/dev/sti_sgc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti_sgc.c,v 1.39 2014/04/08 09:34:22 mpi Exp $ */
+/* $OpenBSD: sti_sgc.c,v 1.40 2014/08/30 14:42:05 miod Exp $ */
/*
* Copyright (c) 2000-2003 Michael Shalayeff
@@ -120,7 +120,7 @@ sti_sgc_probe(struct device *parent, void *match, void *aux)
rom = sti_sgc_getrom(cf->cf_unit, ca);
#ifdef STIDEBUG
- printf ("sti: hpa=%x, rom=%x\n", ca->ca_hpa, rom);
+ printf ("sti: hpa=%lx, rom=%lx\n", ca->ca_hpa, rom);
#endif
/* if it does not map, probably part of the lasi space */
diff --git a/sys/dev/ic/sti.c b/sys/dev/ic/sti.c
index 3f9ca8d30c7..c77411c9d94 100644
--- a/sys/dev/ic/sti.c
+++ b/sys/dev/ic/sti.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti.c,v 1.72 2014/07/12 18:48:17 tedu Exp $ */
+/* $OpenBSD: sti.c,v 1.73 2014/08/30 14:42:05 miod Exp $ */
/*
* Copyright (c) 2000-2003 Michael Shalayeff
@@ -312,7 +312,7 @@ sti_rom_setup(struct sti_rom *rom, bus_space_tag_t iot, bus_space_tag_t memt,
return (ENOMEM);
}
#ifdef STIDEBUG
- printf("code=0x%x[%x]\n", rom->rom_code, size);
+ printf("code=0x%lx[%x]\n", rom->rom_code, size);
#endif
/*
@@ -397,7 +397,7 @@ sti_region_setup(struct sti_screen *scr)
bus_addr_t addr;
#ifdef STIDEBUG
- printf("stiregions @%p:\n", dd->dd_reglst);
+ printf("stiregions @%p:\n", (void *)dd->dd_reglst);
#endif
/*
@@ -440,7 +440,7 @@ sti_region_setup(struct sti_screen *scr)
addr = bases[regno] + (r->offset << PGSHIFT);
#ifdef STIDEBUG
- printf("%08x @ 0x%08x%s%s%s%s\n",
+ printf("%08x @ 0x%08lx%s%s%s%s\n",
r->length << PGSHIFT, addr, r->sys_only ? " sys" : "",
r->cache ? " cache" : "", r->btlb ? " btlb" : "",
r->last ? " last" : "");
@@ -774,8 +774,8 @@ rescan:
#ifdef STIDEBUG
STI_DISABLE_ROM(rom->rom_softc);
printf("font@%p: %d-%d, %dx%d, type %d, next %x\n",
- addr, fp->first, fp->last, fp->width, fp->height, fp->type,
- fp->next);
+ (void *)addr, fp->first, fp->last, fp->width, fp->height,
+ fp->type, fp->next);
STI_ENABLE_ROM(rom->rom_softc);
#endif
diff --git a/sys/dev/pci/sti_pci.c b/sys/dev/pci/sti_pci.c
index ce6af45162e..5d6f09e9934 100644
--- a/sys/dev/pci/sti_pci.c
+++ b/sys/dev/pci/sti_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti_pci.c,v 1.7 2009/02/06 22:51:04 miod Exp $ */
+/* $OpenBSD: sti_pci.c,v 1.8 2014/08/30 14:42:05 miod Exp $ */
/*
* Copyright (c) 2006, 2007 Miodrag Vallat.
@@ -175,7 +175,7 @@ sti_check_rom(struct sti_pci_softc *spc, struct pci_attach_args *pa)
#ifdef STIDEBUG
sti_pci_disable_rom(sc);
- printf("ROM offset %08x size %08x type %08x",
+ printf("ROM offset %08lx size %08lx type %08x",
offs, subsize, tmp);
sti_pci_enable_rom(sc);
#endif