Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2 Enable drm debug output iff boothowto ...



details:   https://anonhg.NetBSD.org/src/rev/e1c5ed1f352c
branches:  trunk
changeset: 795165:e1c5ed1f352c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Apr 03 14:15:05 2014 +0000

description:
Enable drm debug output iff boothowto has AB_DEBUG set.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_stub.c |  2 +-
 sys/external/bsd/drm2/drm/drm_module.c    |  6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r b170238e54d7 -r e1c5ed1f352c sys/external/bsd/drm2/dist/drm/drm_stub.c
--- a/sys/external/bsd/drm2/dist/drm/drm_stub.c Thu Apr 03 13:55:34 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_stub.c Thu Apr 03 14:15:05 2014 +0000
@@ -39,7 +39,7 @@
 #include <drm/drmP.h>
 #include <drm/drm_core.h>
 
-unsigned int drm_debug = 0xf;  /* 1 to enable debug output */
+unsigned int drm_debug = 0;    /* 1 to enable debug output */
 EXPORT_SYMBOL(drm_debug);
 
 unsigned int drm_vblank_offdelay = 5000;    /* Default to 5000 msecs. */
diff -r b170238e54d7 -r e1c5ed1f352c sys/external/bsd/drm2/drm/drm_module.c
--- a/sys/external/bsd/drm2/drm/drm_module.c    Thu Apr 03 13:55:34 2014 +0000
+++ b/sys/external/bsd/drm2/drm/drm_module.c    Thu Apr 03 14:15:05 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_module.c,v 1.2 2014/03/18 18:20:42 riastradh Exp $ */
+/*     $NetBSD: drm_module.c,v 1.3 2014/04/03 14:15:05 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.2 2014/03/18 18:20:42 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_module.c,v 1.3 2014/04/03 14:15:05 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -85,6 +85,8 @@
                        goto init_fail1;
                }
 #endif
+               if (ISSET(boothowto, AB_DEBUG))
+                       drm_debug = ~(unsigned int)0;
                return 0;
 
 #ifdef _MODULE



Home | Main Index | Thread Index | Old Index