blob: 93f5cda5e6d6311641c3ff4327f21fca1c142b74 [file] [log] [blame]
/*******************************************************************************
* Copyright (C) 2007, ZTE Corporation.
*
* File Name:
* File Mark:
* Description:
* Others:
* Version: 1.0
* Author: geanfeng
* Date: 2013-09-25
* History 1:
* Date:
* Version:
* Author:
* Modification:
* History 2:
********************************************************************************/
#ifndef _DRVS_DEBUG_H_
#define _DRVS_DEBUG_H_
/****************************************************************************
* Include files
****************************************************************************/
#include "drvs_general.h"
/****************************************************************************
* Macros
****************************************************************************/
/****************************************************************************
* Types
****************************************************************************/
typedef enum _T_DRV_DEBUG_PRINT_CHANNEL
{
DRV_DEBUG_PRINT_ZOSS,
DRV_DEBUG_PRINT_DCC
}T_DRV_DEBUG_PRINT_CHANNEL;
/****************************************************************************
* Constants
****************************************************************************/
/****************************************************************************
* Global Variables
****************************************************************************/
extern volatile T_DRV_DEBUG_PRINT_CHANNEL g_debugPrintChnSel;
/****************************************************************************
* Function Prototypes
****************************************************************************/
SINT32 debug_Print(const VOID *pFormat, ... );
/*******************************************************************************
* Function:zDrvDebug_Printf
* Description: log´òÓ¡
* Parameters:
* pFormat:¸ñʽ»¯×Ö·û´®
* Output:
*
* Returns:
*
*
* Others:
********************************************************************************/
#define zDrvDebug_Printf(s...) \
{ \
if (g_debugPrintChnSel == DRV_DEBUG_PRINT_ZOSS)\
{\
zOss_Printf(SUBMDL_HAL, PRINT_LEVEL_NORMAL, s);\
}\
else \
{\
debug_Print(s);\
}\
}
#endif/*_DRVS_IO_H_*/