• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
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 PLATFORM_LOG_H
10 #define PLATFORM_LOG_H
11 
12 #include "hdf_log.h"
13 
14 #if defined(__LITEOS__) || defined(__KERNEL__)
15 #define PLAT_LOGV(fmt, arg...)
16 #else
17 #define PLAT_LOGV(fmt, arg...) HDF_LOGV(fmt, ##arg)
18 #endif
19 
20 #define PLAT_LOGD(fmt, arg...) HDF_LOGD(fmt, ##arg)
21 #define PLAT_LOGI(fmt, arg...) HDF_LOGI(fmt, ##arg)
22 #define PLAT_LOGW(fmt, arg...) HDF_LOGW(fmt, ##arg)
23 #define PLAT_LOGE(fmt, arg...) HDF_LOGE(fmt, ##arg)
24 
25 #endif /* PLATFORM_LOG_H */
26