Make compile with DEBUG.
This commit is contained in:
parent
5a06e069fd
commit
8cf7d2d787
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -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? */
|
||||
|
|
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/errno.h>
|
||||
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue