From 8cf7d2d787176eeb88f846d931a6f85c67651c68 Mon Sep 17 00:00:00 2001 From: isaki Date: Sat, 9 Jan 2010 09:16:32 +0000 Subject: [PATCH] Make compile with DEBUG. --- sys/arch/x68k/dev/grf.c | 10 ++++++---- sys/arch/x68k/dev/par.c | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/sys/arch/x68k/dev/grf.c b/sys/arch/x68k/dev/grf.c index b66f7e0b46ee..3c5b8ffabe0a 100644 --- a/sys/arch/x68k/dev/grf.c +++ b/sys/arch/x68k/dev/grf.c @@ -1,4 +1,4 @@ -/* $NetBSD: grf.c,v 1.38 2009/01/18 02:40:05 isaki Exp $ */ +/* $NetBSD: grf.c,v 1.39 2010/01/09 09:16:32 isaki Exp $ */ /* * Copyright (c) 1990, 1993 @@ -83,7 +83,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.38 2009/01/18 02:40:05 isaki Exp $"); +__KERNEL_RCSID(0, "$NetBSD: grf.c,v 1.39 2010/01/09 09:16:32 isaki Exp $"); #include #include @@ -329,8 +329,10 @@ grfunmap(dev_t dev, void *addr, struct proc *p) vsize_t size; #ifdef DEBUG - if (grfdebug & GDB_MMAP) - printf("grfunmap(%d): dev %x addr %p\n", p->p_pid, dev, addr); + if (grfdebug & GDB_MMAP) { + printf("grfunmap(%d): dev %x addr %p\n", + p->p_pid, GRFUNIT(dev), addr); + } #endif if (addr == 0) return EINVAL; /* XXX: how do we deal with this? */ diff --git a/sys/arch/x68k/dev/par.c b/sys/arch/x68k/dev/par.c index 7eab297ab23a..f4607963a2d5 100644 --- a/sys/arch/x68k/dev/par.c +++ b/sys/arch/x68k/dev/par.c @@ -1,4 +1,4 @@ -/* $NetBSD: par.c,v 1.37 2008/06/25 08:14:59 isaki Exp $ */ +/* $NetBSD: par.c,v 1.38 2010/01/09 09:16:32 isaki Exp $ */ /* * Copyright (c) 1982, 1990 The Regents of the University of California. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: par.c,v 1.37 2008/06/25 08:14:59 isaki Exp $"); +__KERNEL_RCSID(0, "$NetBSD: par.c,v 1.38 2010/01/09 09:16:32 isaki Exp $"); #include #include @@ -266,7 +266,7 @@ parwrite(dev_t dev, struct uio *uio, int flag) #ifdef DEBUG if (pardebug & PDB_FOLLOW) - printf("parwrite(%x, %p)\n", dev, uio); + printf("parwrite(%x, %p)\n", UNIT(dev), uio); #endif return (parrw(dev, uio)); }