diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2014-06-15 11:43:25 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2014-06-15 11:43:25 +0000 |
commit | bf5a45723f3396092d735ac11adcfa913c92989c (patch) | |
tree | cdf4f032e2b8fb404d23da64f7a481377fd6dba9 /sys/dev | |
parent | d298da5848fd4950a16c8b5d273f299d3067eb32 (diff) |
Fix a few format string bugs with -DDEBUG
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/fd.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/amas.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index 496249126f3..7527427742a 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.98 2013/12/28 03:39:16 deraadt Exp $ */ +/* $OpenBSD: fd.c,v 1.99 2014/06/15 11:43:24 sf Exp $ */ /* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */ /*- @@ -1105,7 +1105,7 @@ fdformat(dev_t dev, struct fd_formb *finfo, struct proc *p) bp->b_data = (caddr_t)finfo; #ifdef DEBUG - printf("fdformat: blkno %x count %x\n", bp->b_blkno, bp->b_bcount); + printf("fdformat: blkno %llx count %lx\n", bp->b_blkno, bp->b_bcount); #endif /* now do the format */ diff --git a/sys/dev/pci/amas.c b/sys/dev/pci/amas.c index a1eeb8decb0..98658f73e41 100644 --- a/sys/dev/pci/amas.c +++ b/sys/dev/pci/amas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amas.c,v 1.4 2009/05/07 22:25:31 ariane Exp $ */ +/* $OpenBSD: amas.c,v 1.5 2014/06/15 11:43:24 sf Exp $ */ /* * Copyright (c) 2009 Ariane van der Steldt <ariane@stack.nl> @@ -183,7 +183,7 @@ amas_attach(struct device *parent, struct device *self, void *aux) amas_get_pagerange(amas, i, &start_pg, &end_pg); if (!(start_pg == 0 && end_pg == 0)) - printf(" [%p, %p]", start_pg, end_pg); + printf(" [%#lx, %#lx]", start_pg, end_pg); } } #endif /* DEBUG */ |