#ident "$Id: debug.h,v 1.5 2008/01/23 20:59:05 cnguyen Exp $"
/*
 *               Copyright (C) 2005, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  and  are protected by Federal copyright law. They may not be disclosed
 *  to  third  parties or copied or duplicated in any form, in whole or in
 *  part, without the prior written consent of BroadOn Communications Corp.
 *
 */

#ifndef DEBUG_H
#define DEBUG_H

#ifdef DEBUG
#define DPRINT(f, args...) printf("(%s) "f, __func__, ## args)
#else
#define DPRINT(f, args...)
#endif // DEBUG

#if defined(ERR_DEBUG) || defined (DEBUG)
#define ERR_DPRINT(f, args...) printf("(%s) "f, __func__, ## args)
#else
#define ERR_DPRINT(f, args...)
#endif // ERR_DEBUG || DEBUG

#include "md5.h"

void printMD5sum(const void* const ptr, const u32 numBytes);

#ifdef LOG_REGS
#include "dvd_command.h"
extern void diLogRegs(u8 *msg, const diCommand_t *command, u8 noRegs);
#define DLOG_REGS(msg, cmd, log) diLogRegs(msg, cmd, log)
#else
#define DLOG_REGS(msg, cmd, log)
#endif

#endif // DEBUG_H
