summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-14 17:06:08 +0300
committerAlon Levy <alevy@redhat.com>2011-04-14 17:06:08 +0300
commitbbbb06ff05c10d0c8b3facbbeeb051dd22cf60f8 (patch)
treedd0177d20cb1d3beb4be9dd9c1514cad384e229b
parent5f9745737ff89d6635f726e791ed1439b2eebf23 (diff)
miniport: (temp) remove g_log_level, fails somehow, no ideas3
-rw-r--r--miniport/qxl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/miniport/qxl.c b/miniport/qxl.c
index 2aeaa46..4ffebc7 100644
--- a/miniport/qxl.c
+++ b/miniport/qxl.c
@@ -97,7 +97,6 @@ typedef struct QXLExtension {
static char *g_log_buf = NULL;
static PUCHAR g_log_port = 0;
-static UINT32 *g_log_level = NULL;
#define DBG_LEVEL 0
@@ -114,7 +113,7 @@ void DebugPrintV(char *log_buf, PUCHAR log_port, const char *message, const char
{
int n, n_strlen;
- if (log_buf && log_port && g_log_level && *g_log_level > 0) {
+ if (log_buf && log_port) {
/*
* TODO: use a shared semaphore with display code.
* In practice this is not a problem, since miniport runs either on ioctls (sync)
@@ -135,9 +134,6 @@ void DebugPrint(UINT32 level, const char *message, const char *func, ...)
{
va_list ap;
- if (level > (g_log_level ? *g_log_level : DBG_LEVEL)) {
- return;
- }
va_start(ap, message);
DebugPrintV(g_log_buf, g_log_port, message, func, ap);
va_end(ap);
@@ -205,7 +201,6 @@ VP_STATUS InitIO(QXLExtension *dev, PVIDEO_ACCESS_RANGE range)
dev->io_base = io_base;
dev->io_port = (PUCHAR)range->RangeStart.LowPart;
g_log_port = dev->io_port + QXL_IO_LOG;
- g_log_level = &dev->rom->log_level;
DEBUG_PRINT((0, "%s: OK, io 0x%x size %lu\n", __FUNCTION__,
(ULONG)range->RangeStart.LowPart, range->RangeLength));