1 /* 2 * Copyright (C) 2022 HiHope Open Source Organization . 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef AUDIO_DEVICE_LOG_H 10 #define AUDIO_DEVICE_LOG_H 11 #include "hdf_log.h" 12 13 #ifdef __cplusplus 14 #if __cplusplus 15 extern "C" { 16 #endif 17 #endif /* __cplusplus */ 18 19 #define AUDIO_DEVICE_LOG_ERR(fmt, arg...) do { \ 20 HDF_LOGE("[%s][line:%d]: " fmt, __func__, __LINE__, ##arg); \ 21 } while (0) 22 23 #define AUDIO_DEVICE_LOG_INFO(fmt, arg...) do { \ 24 HDF_LOGE("[%s][line:%d]: " fmt, __func__, __LINE__, ##arg); \ 25 } while (0) 26 27 #define AUDIO_DEVICE_LOG_WARNING(fmt, arg...) do { \ 28 HDF_LOGE("[%s][line:%d]: " fmt, __func__, __LINE__, ##arg); \ 29 } while (0) 30 31 #define AUDIO_DEVICE_LOG_DEBUG(fmt, arg...) do { \ 32 HDF_LOGE("[%s][line:%d]: " fmt, __func__, __LINE__, ##arg); \ 33 } while (0) 34 35 #ifdef __cplusplus 36 #if __cplusplus 37 } 38 #endif 39 #endif /* __cplusplus */ 40 41 #endif /* AUDIO_DEVICE_LOG_H */ 42