Enable drm debug output iff boothowto has AB_DEBUG set.

This commit is contained in:
riastradh 2014-04-03 14:15:05 +00:00
parent 526f2aee72
commit 6b41ce6b2b
2 changed files with 5 additions and 3 deletions

View File

@ -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. */

View File

@ -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 @@ drmkms_modcmd(modcmd_t cmd, void *arg __unused)
goto init_fail1;
}
#endif
if (ISSET(boothowto, AB_DEBUG))
drm_debug = ~(unsigned int)0;
return 0;
#ifdef _MODULE