/****************************************************************************** Copyright (C), 2005-2018, Hisilicon Tech. Co., Ltd. ****************************************************************************** File Name : hi_debug.h Version : Initial Draft Author : Hisilicon multimedia software group Created : 2005/4/23 Description : Common debugging macro definition Function List : History : ******************************************************************************/ #ifndef __HI_DEBUG_H__ #define __HI_DEBUG_H__ #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif /* __cplusplus */ #include "hi_type.h" #include "hi_module.h" #ifdef HI_LOG_SUPPORT #define HI_DEBUG #ifdef __KERNEL__ #define HI_PRINT printk #define HI_PANIC printk #else #define HI_PRINT printf #define HI_PANIC printf #endif #else #undef HI_DEBUG #define HI_PANIC(fmt...) \ do { \ } while (0) #define HI_PRINT(fmt...) \ do { \ } while (0) #endif /*************************** Structure Definition ****************************/ /** \addtogroup HI_DEBUG */ /** @{ */ /**