* 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:
Alexander von Gluck IV
2011-08-21 21:10:24 +00:00
parent 3671476941
commit 583110831e
@@ -37,7 +37,7 @@
#undef TRACE
#define TRACE_ATOM
//#define TRACE_ATOM
#ifdef TRACE_ATOM
# define TRACE(x...) _sPrintf("radeon_hd: " x)
#else
@@ -518,10 +518,11 @@ atom_op_calltable(atom_exec_context *ctx, int *ptr, int arg)
int idx = U8((*ptr)++);
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);
else
} else {
TRACE("%s: table: unknown (%d)\n", __func__, idx);
}
if (U16(ctx->ctx->cmd_table + 4 + 2 * idx)) {
result = atom_execute_table_locked(ctx->ctx,
@@ -731,8 +732,10 @@ atom_op_or(atom_exec_context *ctx, int *ptr, int arg)
static void
atom_op_postcard(atom_exec_context *ctx, int *ptr, int arg)
{
#ifdef ATOM_TRACE
uint8 val = U8((*ptr)++);
TRACE("%s: POST card output: 0x%" B_PRIX8 "\n", __func__, val);
#endif
}