Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons wsdisplay(4): Use DPRINTF; reduce #ifdefs.



details:   https://anonhg.NetBSD.org/src/rev/f29839ada8c0
branches:  trunk
changeset: 368522:f29839ada8c0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 17 11:31:47 2022 +0000

description:
wsdisplay(4): Use DPRINTF; reduce #ifdefs.

diffstat:

 sys/dev/wscons/wsdisplay_vcons.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (42 lines):

diff -r 80b12004934a -r f29839ada8c0 sys/dev/wscons/wsdisplay_vcons.c
--- a/sys/dev/wscons/wsdisplay_vcons.c  Sun Jul 17 11:31:07 2022 +0000
+++ b/sys/dev/wscons/wsdisplay_vcons.c  Sun Jul 17 11:31:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsdisplay_vcons.c,v 1.59 2022/07/17 11:31:07 riastradh Exp $ */
+/*     $NetBSD: wsdisplay_vcons.c,v 1.60 2022/07/17 11:31:47 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.59 2022/07/17 11:31:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.60 2022/07/17 11:31:47 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1343,10 +1343,8 @@
        if (error)
                return error;
        vcons_putchar(ri, wsc->row, wsc->col, wsc->letter, attr);
-#ifdef VCONS_DEBUG
-       printf("vcons_putwschar(%d, %d, %x, %lx\n", wsc->row, wsc->col,
+       DPRINTF("vcons_putwschar(%d, %d, %x, %lx\n", wsc->row, wsc->col,
            wsc->letter, attr);
-#endif
        return 0;
 }
 
@@ -1384,10 +1382,8 @@
        wsc->letter = scr->scr_chars[offset];
        attr = scr->scr_attrs[offset];
 
-#ifdef VCONS_DEBUG
-       printf("vcons_getwschar: %d, %d, %x, %lx\n", wsc->row,
+       DPRINTF("vcons_getwschar: %d, %d, %x, %lx\n", wsc->row,
            wsc->col, wsc->letter, attr);
-#endif
 
        /*
         * this is ugly. We need to break up an attribute into colours and



Home | Main Index | Thread Index | Old Index