From e62807140ede74e262ed70c846017dc3506b511e Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 11 Feb 2009 10:10:13 +0100 Subject: siliconmotion: Fix disabling of debugging if SMI501_CLI_DEBUG is set to 0 Due to checking if SMI501_CLI_DEBUG is defined, some debugging will be enabled if SMI501_CLI_DEBUG is set to 0. A single #if should be used instead. Some debugging code already does this. Signed-off-by: Niels de Vos Signed-off-by: Francisco Jerez --- src/smi.h | 2 +- src/smi_501.h | 2 +- src/smi_driver.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/smi.h b/src/smi.h index ebd8a66..e682dfa 100644 --- a/src/smi.h +++ b/src/smi.h @@ -264,7 +264,7 @@ typedef struct structure */ void (*BlockHandler)(int i, pointer blockData, pointer pTimeout, pointer pReadMask); -#ifdef SMI501_CLI_DEBUG +#if SMI501_CLI_DEBUG /* SMI 501/502 Command List Interpreter */ Bool batch_active; int64_t *batch_handle; /* Virtual address */ diff --git a/src/smi_501.h b/src/smi_501.h index c19721b..10bcf6c 100644 --- a/src/smi_501.h +++ b/src/smi_501.h @@ -1333,7 +1333,7 @@ typedef union smi_cli_entry { } smi_cli_entry_t; -#ifdef SMI501_CLI_DEBUG +#if SMI501_CLI_DEBUG /* ensure there are "count" command list "slots" 8 bytes wide free */ #define BATCH_BEGIN(COUNT) \ diff --git a/src/smi_driver.c b/src/smi_driver.c index d417ff7..ac1a952 100644 --- a/src/smi_driver.c +++ b/src/smi_driver.c @@ -1539,7 +1539,7 @@ SMI_MapMem(ScrnInfoPtr pScrn) pSmi->FBReserved = pSmi->FBCursorOffset = pSmi->videoRAMBytes - (pSmi->Dualhead ? SMI501_CURSOR_SIZE << 1 : SMI501_CURSOR_SIZE); -# ifdef SMI501_CLI_DEBUG +# if SMI501_CLI_DEBUG if (pSmi->useEXA) { pSmi->batch_active = FALSE; pSmi->batch_length = 4096; -- cgit v1.2.3