diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-20 00:49:47 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-20 00:49:47 +0000 |
commit | be61be8f4a672ac13622798179e51bb6cd043020 (patch) | |
tree | 597b9ec0da4df42bb78284f2843b9bc4580af0d4 /sys/arch/sparc | |
parent | 7e45482dd1e79a08bc2e66e4619a4ade6c158207 (diff) |
Pass -Wformat.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/cs4231.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/pmap.c | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/sparc/dev/cs4231.c b/sys/arch/sparc/dev/cs4231.c index a607d37d568..19e5f3f7d49 100644 --- a/sys/arch/sparc/dev/cs4231.c +++ b/sys/arch/sparc/dev/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.19 2003/06/02 18:40:59 jason Exp $ */ +/* $OpenBSD: cs4231.c,v 1.20 2003/12/20 00:49:45 miod Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -1536,7 +1536,7 @@ cs4231_trigger_output(addr, start, end, blksize, intr, arg, param) while (p != NULL && p->addr != start) p = p->next; if (p == NULL) { - printf("cs4231_trigger_output: bad addr: %x\n", start); + printf("cs4231_trigger_output: bad addr: %p\n", start); return (EINVAL); } @@ -1602,7 +1602,7 @@ cs4231_trigger_input(addr, start, end, blksize, intr, arg, param) for (p = sc->sc_dmas; p->addr != start; p = p->next) /*EMPTY*/; if (p == NULL) { - printf("%s: trigger_input: bad addr: %x\n", + printf("%s: trigger_input: bad addr: %p\n", sc->sc_dev.dv_xname, start); return (EINVAL); } diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index 412b23c1521..0e936efb302 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.95 2003/12/18 23:38:46 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.96 2003/12/20 00:49:46 miod Exp $ */ /* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */ /* @@ -862,7 +862,7 @@ dumpsys() blkno += btodb(NBPG); } - printf("@%p:",maddr); + printf("@0x%x:", maddr); for (; i < mp->len; i += n) { n = mp->len - i; diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index 82c1a36fa43..5662f1e2f42 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.135 2003/11/03 07:01:33 david Exp $ */ +/* $OpenBSD: pmap.c,v 1.136 2003/12/20 00:49:46 miod Exp $ */ /* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */ /* @@ -2281,7 +2281,7 @@ pv_changepte4m(pv0, bis, bic) tpte = *ptep; #ifdef DIAGNOSTIC if ((tpte & SRMMU_TETYPE) != SRMMU_TEPTE) - panic("pv_changepte: invalid PTE for 0x%x", va); + panic("pv_changepte: invalid PTE for 0x%lx", va); #endif pv0->pv_flags |= MR4M(tpte); @@ -2341,8 +2341,8 @@ pv_syncflags4m(pv0) * XXX - This can't happen?!? */ if (ptep == NULL) { /* invalid */ - printf("pv_syncflags4m: no pte pmap: 0x%x, va: 0x%x\n", - pm, va); + printf("pv_syncflags4m: no pte pmap: %p, va: 0x%x\n", + pm, va); continue; } |