* remove tracing on AtomBIOS parser
* fix a few compile issues when tracing is disabled git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42669 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
#undef TRACE
|
#undef TRACE
|
||||||
|
|
||||||
#define TRACE_ATOM
|
//#define TRACE_ATOM
|
||||||
#ifdef TRACE_ATOM
|
#ifdef TRACE_ATOM
|
||||||
# define TRACE(x...) _sPrintf("radeon_hd: " x)
|
# define TRACE(x...) _sPrintf("radeon_hd: " x)
|
||||||
#else
|
#else
|
||||||
@@ -518,10 +518,11 @@ atom_op_calltable(atom_exec_context *ctx, int *ptr, int arg)
|
|||||||
int idx = U8((*ptr)++);
|
int idx = U8((*ptr)++);
|
||||||
status_t result = B_OK;
|
status_t result = B_OK;
|
||||||
|
|
||||||
if (idx < ATOM_TABLE_NAMES_CNT)
|
if (idx < ATOM_TABLE_NAMES_CNT) {
|
||||||
TRACE("%s: table: %s (%d)\n", __func__, atom_table_names[idx], idx);
|
TRACE("%s: table: %s (%d)\n", __func__, atom_table_names[idx], idx);
|
||||||
else
|
} else {
|
||||||
TRACE("%s: table: unknown (%d)\n", __func__, idx);
|
TRACE("%s: table: unknown (%d)\n", __func__, idx);
|
||||||
|
}
|
||||||
|
|
||||||
if (U16(ctx->ctx->cmd_table + 4 + 2 * idx)) {
|
if (U16(ctx->ctx->cmd_table + 4 + 2 * idx)) {
|
||||||
result = atom_execute_table_locked(ctx->ctx,
|
result = atom_execute_table_locked(ctx->ctx,
|
||||||
@@ -731,8 +732,10 @@ atom_op_or(atom_exec_context *ctx, int *ptr, int arg)
|
|||||||
static void
|
static void
|
||||||
atom_op_postcard(atom_exec_context *ctx, int *ptr, int arg)
|
atom_op_postcard(atom_exec_context *ctx, int *ptr, int arg)
|
||||||
{
|
{
|
||||||
|
#ifdef ATOM_TRACE
|
||||||
uint8 val = U8((*ptr)++);
|
uint8 val = U8((*ptr)++);
|
||||||
TRACE("%s: POST card output: 0x%" B_PRIX8 "\n", __func__, val);
|
TRACE("%s: POST card output: 0x%" B_PRIX8 "\n", __func__, val);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user