Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x68k/dev Make compile with DEBUG.



details:   https://anonhg.NetBSD.org/src/rev/440f44bc035d
branches:  trunk
changeset: 750639:440f44bc035d
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Jan 09 09:16:32 2010 +0000

description:
Make compile with DEBUG.

diffstat:

 sys/arch/x68k/dev/grf.c |  10 ++++++----
 sys/arch/x68k/dev/par.c |   6 +++---
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r b1d7fa65cba9 -r 440f44bc035d sys/arch/x68k/dev/grf.c
--- a/sys/arch/x68k/dev/grf.c   Sat Jan 09 06:37:57 2010 +0000
+++ b/sys/arch/x68k/dev/grf.c   Sat Jan 09 09:16:32 2010 +0000
@@ -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 @@
        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 -r b1d7fa65cba9 -r 440f44bc035d sys/arch/x68k/dev/par.c
--- a/sys/arch/x68k/dev/par.c   Sat Jan 09 06:37:57 2010 +0000
+++ b/sys/arch/x68k/dev/par.c   Sat Jan 09 09:16:32 2010 +0000
@@ -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 @@
        
 #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));
 }



Home | Main Index | Thread Index | Old Index